Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.00ms] Passed 4 tests
This is a short check of server-side resources used by MyDirtyHobby Affiliates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.98 ▼1.63 |
Dashboard /wp-admin | 3.40 ▲0.09 | 43.85 ▼4.36 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.51 ▼2.85 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 97.02 ▲5.43 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.44 ▲0.84 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MyDirtyHobby Affiliates
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,097 ▲362 | 13.64 ▼0.76 | 6.82 ▲4.45 | 41.25 ▼5.92 |
Dashboard /wp-admin | 2,223 ▲35 | 5.79 ▼0.09 | 95.29 ▼16.75 | 38.82 ▼4.81 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.00 ▼0.05 | 39.23 ▼4.34 | 34.17 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.20 ▲0.06 | 592.85 ▼73.24 | 58.54 ▲3.23 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.19 ▼0.00 | 95.75 ▲0.13 | 39.06 ▼2.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mydirtyhobby-affiliate-sign-up/admin/partials/mdh-promote-admin-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mydirtyhobby-affiliate-sign-up/public/partials/mdh-promote-popup-de.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mydirtyhobby-affiliate-sign-up/public/partials/mdh-promote-popup-en.php:9
- > 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 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: adult, affiliate
mydirtyhobby-affiliate-sign-up/mdh-promote.php 69% from 13 tests
Analyzing the main PHP file in "MyDirtyHobby Affiliates" version 1.0.0
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/registrationplugin" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mydirtyhobby-affiliate-sign-up.php" instead of "mdh-promote.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
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
There were no executable files found in this plugin901 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 182 | 523 | 516 |
Sass | 2 | 9 | 0 | 192 |
CSS | 2 | 3 | 2 | 134 |
JavaScript | 2 | 13 | 54 | 59 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/logo_mdh.png | 10.38KB | 6.03KB | ▼ 41.97% |