Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲5.32MB] [CPU: ▼265.09ms] 75% from 4 tests
An overview of server-side resources used by AdFoxly - Ad Manager, AdSense Ads & Ads.txt
Please take the time to fix the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.32MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.39 | 103.19 ▲45.13 |
Dashboard /wp-admin | 8.74 ▲5.33 | 68.06 ▲30.30 |
Posts /wp-admin/edit.php | 8.98 ▲5.34 | 70.43 ▲30.32 |
Add New Post /wp-admin/post-new.php | 12.21 ▲5.23 | 128.19 ▼1,149.46 |
Media Library /wp-admin/upload.php | 8.68 ▲5.38 | 54.79 ▲28.47 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.87 | 58.35 |
Server storage [IO: ▲29.23MB] [DB: ▲0.01MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Total filesystem usage should be limited to 25MB (currently using 29.23MB)
Filesystem: 1,750 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_adfoxly_statistics_clicks |
wp_adfoxly_statistics_views |
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
adfoxly_settings |
widget_adfoxly |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for AdFoxly - Ad Manager, AdSense Ads & Ads.txt
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,969 ▲215 | 16.19 ▼0.01 | 11.07 ▲4.38 | 2.07 ▼1.25 |
Dashboard /wp-admin | 2,960 ▲99 | 6.35 ▼0.14 | 119.48 ▼16.62 | 241.47 ▲74.86 |
Posts /wp-admin/edit.php | 2,749 ▲92 | 3.43 ▼0.00 | 64.97 ▲1.21 | 151.74 ▲11.11 |
Add New Post /wp-admin/post-new.php | 1,721 ▲60 | 20.80 ▲1.77 | 452.86 ▲47.78 | 199.20 ▲29.53 |
Media Library /wp-admin/upload.php | 1,756 ▲61 | 5.76 ▲0.02 | 126.56 ▼6.67 | 225.98 ▲33.98 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,483 | 2.71 | 54.92 | 117.04 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/adfoxly/includes/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_adfoxly_statistics_clicks
- wp_adfoxly_statistics_views
- The uninstall procedure has failed, leaving 6 options in the database
- fs_accounts
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
- widget_adfoxly
- adfoxly_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/adfoxly/includes/freemius/templates/ajax-loader.php
- > /wp-content/plugins/adfoxly/includes/mobiledetect/export/exportToJSON.php
- 288× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/adfoxly/vendor/twig/twig/src/Node/Expression/AbstractExpression.php:22
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/adfoxly/vendor/twig/twig/src/Extension/CoreExtension.php:75
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/adfoxly/vendor/asm89/twig-cache-extension/lib/Asm89/Twig/CacheExtension/Node/CacheNode.php:19
- > PHP Fatal error
Uncaught Error: Class 'Timber\\Term' not found in wp-content/plugins/adfoxly/vendor/timber/timber/lib/Menu.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/adfoxly/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #6 is missing in adfoxly/assets to your readme.txt
adfoxly/adfoxly.php 92% from 13 tests
The primary PHP file in "AdFoxly - Ad Manager, AdSense Ads & Ads.txt" version 1.7.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 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 detected277,954 lines of code in 1,622 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 720 | 36,730 | 57,072 | 168,600 |
PHP | 690 | 14,011 | 29,150 | 62,479 |
CSS | 162 | 4,313 | 1,907 | 43,509 |
Twig | 13 | 41 | 102 | 1,039 |
SVG | 19 | 0 | 14 | 770 |
JSON | 2 | 0 | 0 | 562 |
Bourne Shell | 5 | 57 | 22 | 310 |
Markdown | 5 | 133 | 0 | 299 |
LESS | 2 | 17 | 10 | 195 |
PO File | 1 | 59 | 69 | 145 |
XML | 1 | 0 | 0 | 20 |
YAML | 1 | 1 | 0 | 15 |
reStructuredText | 1 | 8 | 5 | 11 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,907)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 127)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 13.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 127.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 598 | |
▷ Abstract classes | 16 | 2.68% |
▷ Concrete classes | 582 | 97.32% |
▷ Final classes | 51 | 8.76% |
Methods | 2,926 | |
▷ Static methods | 449 | 15.35% |
▷ Public methods | 2,310 | 78.95% |
▷ Protected methods | 197 | 6.73% |
▷ Private methods | 419 | 14.32% |
Functions | 262 | |
▷ Named functions | 212 | 80.92% |
▷ Anonymous functions | 50 | 19.08% |
Constants | 199 | |
▷ Global constants | 104 | 52.26% |
▷ Class constants | 95 | 47.74% |
▷ Public constants | 95 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.49MB with 0.18MB 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/datatables/DataTables-1.10.16/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/vendors/timepicki/images/top_arr.png | 1.10KB | 0.27KB | ▼ 75.56% |
assets/vendors/stisla/dist/assets/modules/datatables/DataTables-1.10.16/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/vendors/timepicki/images/arrow.png | 1.35KB | 0.43KB | ▼ 68.07% |
assets/vendors/stisla/dist/assets/modules/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |