Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.38ms] Passed 4 tests
A check of server-side resources used by Ads Management
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 45.33 ▲1.34 |
Dashboard /wp-admin | 3.52 ▲0.22 | 50.60 ▼1.41 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 50.72 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 87.81 ▼10.44 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.86 ▲1.40 |
Instructions /wp-admin/admin.php?page=msbd_adsmp_instructions | 3.41 | 34.56 |
Management Advertisement /wp-admin/admin.php?page=msbd_adsmp_manage | 3.45 | 36.28 |
Settings /wp-admin/admin.php?page=msbd_adsmp_settings | 3.41 | 32.73 |
Add New /wp-admin/admin.php?page=msbd_adsmp_add_edit | 3.40 | 37.56 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_msbd_adsmp |
wp_msbd_adsmp_adv_to_categories |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
category_children |
msbd_adsmp_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ads Management
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.29 ▼0.08 | 1.57 ▼0.02 | 42.98 ▲2.79 |
Dashboard /wp-admin | 2,217 ▲37 | 5.57 ▼0.09 | 87.54 ▼0.50 | 78.84 ▲33.12 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.99 ▼0.05 | 36.11 ▼0.30 | 37.52 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,708 ▲180 | 21.88 ▼1.15 | 652.02 ▼8.87 | 53.59 ▲0.36 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.17 ▲0.00 | 100.90 ▼8.85 | 73.86 ▲28.13 |
Instructions /wp-admin/admin.php?page=msbd_adsmp_instructions | 1,035 | 5.15 | 151.70 | 57.27 |
Management Advertisement /wp-admin/admin.php?page=msbd_adsmp_manage | 1,132 | 4.65 | 142.79 | 33.41 |
Settings /wp-admin/admin.php?page=msbd_adsmp_settings | 1,088 | 4.72 | 112.20 | 32.22 |
Add New /wp-admin/admin.php?page=msbd_adsmp_add_edit | 1,270 | 4.88 | 93.16 | 34.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_msbd_adsmp
- wp_msbd_adsmp_adv_to_categories
- Zombie WordPress options detected upon uninstall: 8 options
- msbd_adsmp_options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- category_children
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ads-management/libs/msbd-adsm-admin-tables.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/ads-management/ads-management.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ads-management/libs/msbd-adsm-admin-tables.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ads-management/libs/msbd-adsm-admin-tables.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'MsbdCrud' not found in wp-content/plugins/ads-management/libs/msbd-adsm-db.php:6
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=msbd_adsmp_add_edit
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: ads shortcode, manage advertisements, affiliate advertising, google adsense, manage ads...
ads-management/ads-management.php 92% from 13 tests
Analyzing the main PHP file in "Ads Management" version 0.2.2
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,588 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 572 | 167 | 1,460 |
CSS | 2 | 13 | 0 | 99 |
JavaScript | 2 | 17 | 9 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 25.38 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 8 | 9.76% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/msbd_logo.png | 28.81KB | 9.10KB | ▼ 68.41% |
images/msbd_favicon_32.png | 1.12KB | 1.20KB | 0.00% |
images/msbd_favicon_16.png | 0.61KB | 0.63KB | 0.00% |