Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼291.88ms] Passed 4 tests
Server-side resources used by AdPlugg WordPress Ad Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.20 | 55.12 ▼0.65 |
Dashboard /wp-admin | 3.72 ▲0.31 | 34.71 ▲2.14 |
Posts /wp-admin/edit.php | 3.94 ▲0.30 | 42.26 ▲4.93 |
Add New Post /wp-admin/post-new.php | 7.24 ▲0.27 | 94.29 ▼1,171.81 |
Media Library /wp-admin/upload.php | 3.66 ▲0.37 | 27.53 ▲2.80 |
AMP /wp-admin/admin.php?page=adplugg_amp_settings | 3.64 | 25.34 |
General /wp-admin/admin.php?page=adplugg | 3.64 | 28.14 |
Facebook /wp-admin/admin.php?page=adplugg_facebook_settings | 3.64 | 26.04 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 77 new files
Database: no new tables, 2 new options
New WordPress options |
---|
adplugg_options |
widget_adplugg |
Browser metrics Passed 4 tests
AdPlugg WordPress Ad Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲93 | 15.87 ▼0.14 | 5.92 ▲0.03 | 2.33 ▲0.30 |
Dashboard /wp-admin | 2,965 ▲104 | 6.17 ▼0.03 | 116.96 ▼24.88 | 160.01 ▼9.10 |
Posts /wp-admin/edit.php | 2,762 ▲71 | 3.26 ▲0.03 | 68.60 ▲3.17 | 142.04 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,719 ▲58 | 20.07 ▲3.56 | 382.40 ▼49.74 | 160.72 ▲4.02 |
Media Library /wp-admin/upload.php | 1,768 ▲70 | 5.58 ▲0.06 | 138.67 ▼15.94 | 188.83 ▼5.60 |
AMP /wp-admin/admin.php?page=adplugg_amp_settings | 1,416 | 2.88 | 58.21 | 139.72 |
General /wp-admin/admin.php?page=adplugg | 2,473 | 9.27 | 296.00 | 165.90 |
Facebook /wp-admin/admin.php?page=adplugg_facebook_settings | 1,336 | 2.75 | 57.43 | 132.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 63× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ADPLUGG_INCLUDES - assumed 'ADPLUGG_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/adplugg/tests/includes/frontend/test-class-adplugg-facebook-instant-articles.php on line 3
- > PHP Warning
require_once(ADPLUGG_INCLUDESadmin/notices/class-adplugg-notice.php): failed to open stream: No such file or directory in wp-content/plugins/adplugg/tests/includes/admin/test-class-adplugg-admin.php on line 3
- > PHP Warning
Use of undefined constant ADPLUGG_INCLUDES - assumed 'ADPLUGG_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/adplugg/tests/includes/admin/notices/test-class-adplugg-notice.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adplugg/tests/includes/test-class-adplugg-options.php:10
- > PHP Warning
require_once(ADPLUGG_INCLUDESadmin/pages/class-adplugg-facebook-options-page.php): failed to open stream: No such file or directory in wp-content/plugins/adplugg/tests/includes/admin/pages/test-class-adplugg-facebook-options-page.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ADPLUGG_INCLUDESadmin/notices/class-adplugg-notice.php' (include_path='.:/usr/share/php') in wp-content/plugins/adplugg/tests/includes/admin/notices/test-class-adplugg-notice-controller.php on line 3
- > PHP Warning
Use of undefined constant ADPLUGG_INCLUDES - assumed 'ADPLUGG_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/adplugg/tests/includes/admin/help/test-class-adplugg-widgets-page-help.php on line 3
- > PHP Warning
require_once(ADPLUGG_INCLUDESadmin/notices/class-adplugg-notice.php): failed to open stream: No such file or directory in wp-content/plugins/adplugg/tests/includes/admin/notices/test-class-adplugg-notice.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ADPLUGG_INCLUDESfrontend/class-adplugg-feed.php' (include_path='.:/usr/share/php') in wp-content/plugins/adplugg/tests/includes/frontend/test-class-adplugg-feed.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ADPLUGG_INCLUDESadmin/pages/class-adplugg-amp-options-page.php' (include_path='.:/usr/share/php') in wp-content/plugins/adplugg/tests/includes/admin/pages/test-class-adplugg-amp-options-page.php on line 3
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 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
7 plugin tags: ad server, ads, advertising, ad manager, adsense...
adplugg/adplugg.php 92% from 13 tests
The main file in "AdPlugg WordPress Ad Plugin" v. 1.9.60 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 665 characters long)
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
Success! There were no dangerous files found in this plugin4,107 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,168 | 2,494 | 3,718 |
Bourne Shell | 1 | 21 | 7 | 99 |
CSS | 2 | 22 | 27 | 86 |
JavaScript | 4 | 13 | 66 | 71 |
XML | 2 | 6 | 4 | 61 |
JSON | 1 | 0 | 0 | 38 |
Markdown | 1 | 8 | 0 | 22 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 268 | |
▷ Static methods | 35 | 13.06% |
▷ Public methods | 264 | 98.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.49% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 16 | 94.12% |
▷ Class constants | 1 | 5.88% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin