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.05MB] [CPU: ▼5.07ms] Passed 4 tests
Analyzing server-side resources used by DropshipMe
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.80 ▼6.29 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.33 ▼3.15 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.90 ▲4.91 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.03 ▼14.25 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 39.22 ▲3.42 |
Server storage [IO: ▲3.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for DropshipMe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.24 | 1.52 ▼0.49 | 41.84 ▼5.47 |
Dashboard /wp-admin | 2,207 ▲19 | 4.86 ▼1.03 | 99.83 ▼15.98 | 39.31 ▼3.43 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.03 | 41.01 ▲0.31 | 35.72 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.16 ▼0.05 | 670.69 ▲22.36 | 54.56 ▲8.94 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▲0.01 | 101.39 ▼4.22 | 43.58 ▼1.00 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/cron.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dropship-me/dropship-me.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/core.php:65
- > PHP Fatal error
Uncaught Error: Class 'dm\\dmTemplateRender' not found in wp-content/plugins/dropship-me/includes/dm/dmTemplate.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dropship-me/core/filters.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/hooks.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dropship-me/core/setup.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
dropship-me/dropship-me.php 85% from 13 tests
The primary PHP file in "DropshipMe" version 1.0.3.16 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 229 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin17,723 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 2,072 | 838 | 8,041 |
JavaScript | 33 | 946 | 284 | 3,492 |
CSS | 18 | 217 | 29 | 3,283 |
SVG | 45 | 0 | 3 | 2,888 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 61.58 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 234 | |
▷ Static methods | 2 | 0.85% |
▷ Public methods | 119 | 50.85% |
▷ Protected methods | 40 | 17.09% |
▷ Private methods | 75 | 32.05% |
Functions | 73 | |
▷ Named functions | 67 | 91.78% |
▷ Anonymous functions | 6 | 8.22% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/main/rating-stars.png | 0.41KB | 0.42KB | 0.00% |
src/images/icons/eye.png | 0.79KB | 0.92KB | 0.00% |
src/images/icons/plus_white.png | 1.83KB | 0.25KB | ▼ 86.62% |
src/images/flags/flags_responsive.png | 79.51KB | 79.67KB | 0.00% |
src/images/flags/flag_placeholder.png | 0.59KB | 0.60KB | 0.00% |