Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.49ms] Passed 4 tests
Analyzing server-side resources used by Solutions Ad Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.20 ▼1.24 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.52 ▼2.11 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.75 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 97.23 ▲4.35 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.69 ▲0.83 |
How To Use /wp-admin/edit.php?post_type=solutions-ad-manager&page=solutions-ad-manager-howto | 3.38 | 30.95 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.44 | 37.55 |
Groups /wp-admin/edit-tags.php?taxonomy=solutions-ad-group&post_type=solutions-ad-manager | 3.36 | 33.36 |
Ads /wp-admin/edit.php?post_type=solutions-ad-manager | 3.48 | 35.42 |
Options /wp-admin/edit.php?post_type=solutions-ad-manager&page=solutions-ad-manager-options | 3.37 | 33.42 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_sam_random_from_group_widget |
widget_sam_specific_widget |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
solutions_ad_database_version |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Solutions Ad Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲120 | 13.62 ▼1.13 | 1.62 ▼0.42 | 44.36 ▼1.34 |
Dashboard /wp-admin | 2,278 ▲90 | 5.90 ▲0.12 | 106.91 ▼13.40 | 45.42 ▲1.57 |
Posts /wp-admin/edit.php | 2,172 ▲80 | 2.06 ▲0.01 | 41.92 ▲4.32 | 41.16 ▲5.85 |
Add New Post /wp-admin/post-new.php | 1,575 ▲54 | 23.50 ▲0.39 | 656.78 ▼59.37 | 54.01 ▼3.12 |
Media Library /wp-admin/upload.php | 1,471 ▲80 | 4.27 ▲0.09 | 98.92 ▼2.84 | 45.47 ▼1.86 |
How To Use /wp-admin/edit.php?post_type=solutions-ad-manager&page=solutions-ad-manager-howto | 953 | 2.19 | 28.70 | 31.80 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,000 | 2.09 | 27.01 | 34.41 |
Groups /wp-admin/edit-tags.php?taxonomy=solutions-ad-group&post_type=solutions-ad-manager | 1,339 | 2.33 | 27.96 | 32.94 |
Ads /wp-admin/edit.php?post_type=solutions-ad-manager | 1,164 | 1.98 | 32.70 | 34.65 |
Options /wp-admin/edit.php?post_type=solutions-ad-manager&page=solutions-ad-manager-options | 934 | 2.21 | 24.71 | 33.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_sam_random_from_group_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_sam_specific_widget
- solutions_ad_database_version
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/solutions-ad-manager/public/partials/solutions-ad-manager-public-display.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/solutions-ad-manager/includes/class-solutions-ad-manager-widget-display-specific.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/solutions-ad-manager/includes/required-plugins/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/solutions-ad-manager/admin/partials/solutions-ad-manager-admin-display-howto.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/solutions-ad-manager/includes/class-solutions-ad-manager-widget.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/solutions-ad-manager/admin/partials/solutions-ad-manager-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== solutions-ad-manager ===
)
solutions-ad-manager/solutions-ad-manager.php Passed 13 tests
The principal PHP file in "Solutions Ad Manager" v. 1.0.0 is loaded by WordPress automatically on each request
90 characters long description:
A simple ad manager that allows you to display pictures and YouTube videos in to a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,671 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 17 | 1,449 | 1,993 | 4,842 |
PHP | 16 | 655 | 2,064 | 2,800 |
CSS | 2 | 1 | 0 | 23 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 27.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 7 | 4.17% |
▷ Public methods | 139 | 82.74% |
▷ Protected methods | 23 | 13.69% |
▷ Private methods | 6 | 3.57% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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