Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.32ms] Passed 4 tests
An overview of server-side resources used by AdPlugg WordPress Ad Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 38.56 ▼1.55 |
Dashboard /wp-admin | 3.68 ▲0.38 | 49.63 ▼2.15 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 50.29 ▲0.30 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 96.45 ▲8.67 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 38.20 ▲9.50 |
Facebook /wp-admin/admin.php?page=adplugg_facebook_settings | 3.51 | 34.83 |
General /wp-admin/admin.php?page=adplugg | 3.51 | 34.43 |
AMP /wp-admin/admin.php?page=adplugg_amp_settings | 3.51 | 34.08 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
adplugg_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_adplugg |
Browser metrics Passed 4 tests
A check of browser resources used by AdPlugg WordPress Ad Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲84 | 14.33 ▲0.07 | 1.64 ▼0.02 | 38.19 ▼3.57 |
Dashboard /wp-admin | 2,251 ▲71 | 5.60 ▼0.07 | 88.44 ▲0.05 | 41.37 ▼2.18 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.01 ▲0.01 | 42.00 ▲0.94 | 37.90 ▼4.02 |
Add New Post /wp-admin/post-new.php | 6,414 ▲4,888 | 27.57 ▲3.88 | 887.40 ▲213.62 | 37.57 ▼19.74 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.21 ▼0.01 | 97.87 ▼7.13 | 42.67 ▲1.85 |
Facebook /wp-admin/admin.php?page=adplugg_facebook_settings | 1,030 | 1.93 | 26.63 | 29.63 |
General /wp-admin/admin.php?page=adplugg | 2,057 | 9.85 | 204.94 | 41.68 |
AMP /wp-admin/admin.php?page=adplugg_amp_settings | 1,070 | 1.79 | 27.36 | 30.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 65× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adplugg/tests/includes/integrations/mailpoet/test-class-adplugg-mailpoet.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/adplugg/tests/includes/core/test-class-adplugg-ad-tag.php:10
- > 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-facebook-instant-articles.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/test-class-privacy.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ADPLUGG_INCLUDESadmin/help/class-adplugg-widgets-page-help.php' (include_path='.:/usr/share/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/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 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
require_once(ADPLUGG_INCLUDESadmin/help/class-adplugg-widgets-page-help.php): failed to open stream: No such file or directory in wp-content/plugins/adplugg/tests/includes/admin/help/test-class-adplugg-widgets-page-help.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/test-class-adplugg-admin.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ADPLUGG_INCLUDESwidgets/class-adplugg-widget.php' (include_path='.:/usr/share/php') in wp-content/plugins/adplugg/tests/includes/widgets/test-class-adplugg-widget.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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, ad server, ad rotator, banners, adsense...
adplugg/adplugg.php 92% from 13 tests
"AdPlugg WordPress Ad Plugin" version 1.12.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (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
No dangerous file extensions were detected4,312 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 1,210 | 2,593 | 3,830 |
JavaScript | 5 | 19 | 75 | 134 |
Bourne Shell | 1 | 21 | 7 | 99 |
CSS | 3 | 22 | 33 | 92 |
JSON | 2 | 0 | 0 | 62 |
XML | 2 | 6 | 4 | 61 |
Markdown | 1 | 8 | 0 | 22 |
SVG | 1 | 0 | 0 | 12 |
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.12 |
Average class complexity | 4.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 1 | 1.82% |
▷ Concrete classes | 54 | 98.18% |
▷ Final classes | 0 | 0.00% |
Methods | 277 | |
▷ Static methods | 37 | 13.36% |
▷ Public methods | 273 | 98.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.44% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 18 | 94.74% |
▷ Class constants | 1 | 5.26% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected