Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▲0.37ms] Passed 4 tests
Server-side resources used by WP AdCenter - Ad Manager & Adsense Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 38.59 ▼0.36 |
Dashboard /wp-admin | 3.50 ▲0.19 | 49.45 ▼0.30 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 46.41 ▲0.67 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 86.73 ▲3.51 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.94 ▲1.46 |
Create Ad /wp-admin/post-new.php?post_type=wpadcenter-ads | 3.56 | 58.88 |
Getting Started /wp-admin/edit.php?post_type=wpadcenter-ads&page=wpadcenter-getting-started | 3.40 | 35.28 |
Manage Ad Groups /wp-admin/edit-tags.php?taxonomy=wpadcenter-adgroups&post_type=wpadcenter-ads | 3.42 | 44.87 |
Reports /wp-admin/edit.php?post_type=wpadcenter-ads&page=wpadcenter-reports | 3.48 | 41.24 |
Manage Ads /wp-admin/edit.php?post_type=wpadcenter-ads | 3.48 | 41.55 |
Settings /wp-admin/edit.php?post_type=wpadcenter-ads&page=wpadcenter-settings | 3.50 | 34.84 |
Server storage [IO: ▲9.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 904 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_ads_statistics |
wp_placements_statistics |
New WordPress options |
---|
widget_recent-posts |
wpadcenter_migration_v2 |
wpadcenter_placement_db |
wpadcenter_placement_table_install |
can_compress_scripts |
widget_recent-comments |
WPAdCenter-Settings |
widget_theysaidso_widget |
wpadcenter_update_placements_5.2.3 |
wpadcenter_review_pending |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP AdCenter - Ad Manager & Adsense Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲64 | 13.25 ▼1.58 | 1.53 ▼0.27 | 38.43 ▼8.26 |
Dashboard /wp-admin | 2,241 ▲35 | 5.83 ▼0.02 | 111.74 ▲7.68 | 84.40 ▲42.84 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.05 ▲0.06 | 36.66 ▲0.26 | 32.22 ▼2.50 |
Add New Post /wp-admin/post-new.php | 6,495 ▲4,961 | 23.80 ▲0.76 | 880.16 ▲193.55 | 45.80 ▼14.57 |
Media Library /wp-admin/upload.php | 1,438 ▲56 | 4.15 ▼0.02 | 96.05 ▼4.31 | 73.85 ▲26.92 |
Create Ad /wp-admin/post-new.php?post_type=wpadcenter-ads | 4,991 | 8.24 | 230.25 | 116.35 |
Getting Started /wp-admin/edit.php?post_type=wpadcenter-ads&page=wpadcenter-getting-started | 1,495 | 9.95 | 301.07 | 82.91 |
Manage Ad Groups /wp-admin/edit-tags.php?taxonomy=wpadcenter-adgroups&post_type=wpadcenter-ads | 1,260 | 2.18 | 29.68 | 29.80 |
Reports /wp-admin/edit.php?post_type=wpadcenter-ads&page=wpadcenter-reports | 1,786 | 8.34 | 143.71 | 103.58 |
Manage Ads /wp-admin/edit.php?post_type=wpadcenter-ads | 1,368 | 2.47 | 40.39 | 45.02 |
Settings /wp-admin/edit.php?post_type=wpadcenter-ads&page=wpadcenter-settings | 1,699 | 5.84 | 100.88 | 48.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_ads_statistics
- wp_placements_statistics
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- wpadcenter-version
- wpadcenter_review_pending
- WPAdCenter-Settings
- wpadcenter_migration_v2
- widget_recent-comments
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpadcenter/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
- 120× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/wpadcenter/vendor/composer/../symfony/polyfill-ctype/bootstrap.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpadcenter/vendor/composer/autoload_real.php on line 55
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpadcenter/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=wpadcenter-ads
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=wpadcenter-ads 572 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/post-new.php?post_type=wpadcenter-ads
- > Deprecation (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (23 tag instead of maximum 10)
- Requires at least: Invalid version format
wpadcenter/wpadcenter.php Passed 13 tests
The main PHP file in "WP AdCenter - Ad Manager & Adsense Ads" ver. 2.5.4 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Advertising management plugin for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected146,665 lines of code in 790 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 264 | 21,381 | 17,727 | 89,253 |
CSS | 105 | 3,935 | 732 | 27,179 |
PHP | 147 | 1,865 | 3,804 | 13,335 |
Sass | 132 | 1,011 | 534 | 4,639 |
Markdown | 66 | 1,684 | 0 | 4,598 |
JSON | 9 | 0 | 0 | 3,194 |
SVG | 5 | 0 | 1 | 2,722 |
YAML | 29 | 56 | 0 | 822 |
Twig | 24 | 56 | 0 | 557 |
HTML | 7 | 65 | 0 | 344 |
XML | 1 | 0 | 0 | 20 |
Bourne Shell | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 492.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 1 | 0.76% |
▷ Concrete classes | 130 | 99.24% |
▷ Final classes | 0 | 0.00% |
Methods | 399 | |
▷ Static methods | 61 | 15.29% |
▷ Public methods | 334 | 83.71% |
▷ Protected methods | 46 | 11.53% |
▷ Private methods | 19 | 4.76% |
Functions | 16 | |
▷ Named functions | 8 | 50.00% |
▷ Anonymous functions | 8 | 50.00% |
Constants | 29 | |
▷ Global constants | 8 | 27.59% |
▷ Class constants | 21 | 72.41% |
▷ Public constants | 21 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
79 PNG files occupy 1.05MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/select2/select2/docs/pages/images/flags/ia.png | 6.94KB | 3.21KB | ▼ 53.75% |
vendor/select2/select2/docs/pages/images/flags/nm.png | 1.49KB | 0.96KB | ▼ 35.13% |
vendor/select2/select2/docs/pages/images/flags/ri.png | 6.76KB | 3.13KB | ▼ 53.76% |
vendor/select2/select2/docs/pages/images/flags/ny.png | 9.50KB | 4.12KB | ▼ 56.68% |
vendor/select2/select2/docs/pages/images/flags/wy.png | 4.24KB | 2.36KB | ▼ 44.30% |