Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.88MB] [CPU: ▲35.17ms] 75% from 4 tests
Analyzing server-side resources used by AdFoxly - Ad Manager, AdSense Ads & Ads.txt
It is recommended to improve the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.88MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.30 ▲5.84 | 96.02 ▲56.49 |
Dashboard /wp-admin | 9.24 ▲5.94 | 83.62 ▲34.69 |
Posts /wp-admin/edit.php | 9.24 ▲5.89 | 93.30 ▲44.31 |
Add New Post /wp-admin/post-new.php | 11.73 ▲5.85 | 118.76 ▲16.77 |
Media Library /wp-admin/upload.php | 9.24 ▲6.02 | 77.79 ▲44.91 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.28 | 84.94 |
Server storage [IO: ▲31.58MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 31.58MB)
Filesystem: 2,310 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_adfoxly_statistics_clicks |
wp_adfoxly_statistics_views |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_adfoxly |
widget_recent-posts |
fs_debug_mode |
can_compress_scripts |
fs_active_plugins |
adfoxly_settings |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AdFoxly - Ad Manager, AdSense Ads & Ads.txt
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲224 | 13.63 ▼0.74 | 8.90 ▲7.10 | 33.30 ▼9.62 |
Dashboard /wp-admin | 2,232 ▲44 | 5.83 ▲0.93 | 93.32 ▼15.37 | 89.18 ▲48.48 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 1.98 ▼0.05 | 37.05 ▼5.36 | 36.38 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 18.21 ▲0.17 | 712.03 ▲97.93 | 52.47 ▲1.93 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.23 ▲0.00 | 96.74 ▲0.67 | 76.63 ▲31.67 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,107 | 1.74 | 25.43 | 26.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/adfoxly/includes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_adfoxly_statistics_views
- wp_adfoxly_statistics_clicks
- Zombie WordPress options were found after uninstall: 11 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- fs_accounts
- db_upgraded
- fs_debug_mode
- fs_active_plugins
- widget_theysaidso_widget
- widget_adfoxly
- adfoxly_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adfoxly/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
- > /wp-content/plugins/adfoxly/includes/mobiledetect/export/exportToJSON.php
- 572× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/adfoxly/vendor/php-http/discovery/src/MessageFactoryDiscovery.php:15
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\Exception\otFoundException' not found in wp-content/plugins/adfoxly/vendor/php-http/discovery/src/NotFoundException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\CacheExtension\\CacheStrategy\\KeyGeneratorInterface' not found in wp-content/plugins/adfoxly/vendor/timber/timber/lib/Cache/KeyGenerator.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/adfoxly/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Sentry\\ClientInterface' not found in wp-content/plugins/adfoxly/vendor/sentry/sentry/src/Client.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\Sandbox\\SecurityPolicyInterface' not found in wp-content/plugins/adfoxly/vendor/twig/twig/src/Sandbox/SecurityPolicy.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/adfoxly/vendor/twig/twig/src/Profiler/NodeVisitor/ProfilerNodeVisitor.php:28
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Common\\HttpClientPool\\HttpClientPool' not found in wp-content/plugins/adfoxly/vendor/php-http/client-common/src/HttpClientPool/RoundRobinClientPool.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #6 in adfoxly/assets to your readme.txt
adfoxly/adfoxly.php 92% from 13 tests
"AdFoxly - Ad Manager, AdSense Ads & Ads.txt" version 1.8.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 174 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected317,930 lines of code in 2,171 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 721 | 36,730 | 57,072 | 168,601 |
PHP | 1,229 | 23,839 | 50,726 | 99,641 |
CSS | 164 | 4,316 | 1,907 | 43,517 |
JSON | 5 | 0 | 0 | 3,122 |
Twig | 13 | 41 | 107 | 1,052 |
SVG | 19 | 0 | 14 | 770 |
Markdown | 6 | 201 | 0 | 513 |
Bourne Shell | 6 | 62 | 22 | 315 |
LESS | 2 | 17 | 10 | 195 |
PO File | 1 | 59 | 69 | 145 |
XML | 1 | 0 | 0 | 20 |
YAML | 2 | 1 | 0 | 16 |
make | 1 | 6 | 0 | 13 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 166)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 12.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 166.00 |
Code structure | ||
---|---|---|
Namespaces | 122 | |
Interfaces | 110 | |
Traits | 26 | |
Classes | 999 | |
▷ Abstract classes | 26 | 2.60% |
▷ Concrete classes | 973 | 97.40% |
▷ Final classes | 282 | 28.98% |
Methods | 5,860 | |
▷ Static methods | 878 | 14.98% |
▷ Public methods | 4,776 | 81.50% |
▷ Protected methods | 306 | 5.22% |
▷ Private methods | 778 | 13.28% |
Functions | 639 | |
▷ Named functions | 333 | 52.11% |
▷ Anonymous functions | 306 | 47.89% |
Constants | 401 | |
▷ Global constants | 116 | 28.93% |
▷ Class constants | 285 | 71.07% |
▷ Public constants | 253 | 88.77% |
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
29 PNG files occupy 0.52MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendors/stisla/dist/assets/modules/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
assets/vendors/stisla/dist/assets/modules/owlcarousel2/dist/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
assets/vendors/stisla/dist/assets/modules/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/vendors/stisla/dist/assets/modules/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
includes/freemius/assets/img/adfoxly.png | 40.88KB | 25.05KB | ▼ 38.72% |