Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.31MB] [CPU: ▼17.15ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Notice Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 33.43 ▼8.26 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.05 ▼1.48 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.45 ▲6.60 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.27 | 44.47 ▼61.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.04 ▲2.76 |
Support /wp-admin/admin.php?page=affiliate-notice-support | 3.27 | 30.13 |
Settings /wp-admin/admin.php?page=affiliate-notice-settings | 3.26 | 29.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Notice Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲153 | 13.96 ▼0.33 | 5.10 ▲3.02 | 43.76 ▼3.05 |
Dashboard /wp-admin | 2,236 ▲45 | 4.85 ▼0.09 | 107.93 ▲0.29 | 39.29 ▼3.77 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.05 | 40.39 ▲3.27 | 35.66 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.24 ▼4.94 | 617.30 ▲19.80 | 68.19 ▲18.08 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.18 ▼0.06 | 97.23 ▼5.08 | 41.51 ▼2.31 |
Support /wp-admin/admin.php?page=affiliate-notice-support | 873 | 2.02 | 22.70 | 24.95 |
Settings /wp-admin/admin.php?page=affiliate-notice-settings | 808 | 2.07 | 24.15 | 26.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=affiliate-notice-settings
- > Notice in wp-content/plugins/affiliate-notice-manager/admin/class-affiliate-notice-manager-admin.php+192
Trying to access array offset on value of type bool
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/affiliate-notice-manager/public/partials/affiliate-notice-manager-public-display.php
- > /wp-content/plugins/affiliate-notice-manager/admin/partials/affiliate-notice-manager-admin-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/affiliate-notice-manager/admin/partials/tmpl-notice-manager-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/affiliate-notice-manager/admin/partials/tmpl-affiliate-notice-manager-support.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: plugin, affiliate, post, disclosure, wordpress...
affiliate-notice-manager/affiliate-notice-manager.php Passed 13 tests
The main file in "Affiliate Notice Manager" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin296 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 164 | 575 | 275 |
CSS | 2 | 2 | 8 | 15 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected