Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼7.42ms] Passed 4 tests
Analyzing server-side resources used by Dropshix
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 41.29 ▲0.46 |
Dashboard /wp-admin | 3.79 ▲0.45 | 51.21 ▼14.76 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 54.13 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 97.62 ▼15.37 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 40.42 ▲6.00 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dropshix
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.80 ▼0.57 | 5.73 ▲3.72 | 40.95 ▼2.78 |
Dashboard /wp-admin | 2,243 ▲37 | 4.98 ▲0.07 | 103.77 ▼5.73 | 40.25 ▼0.95 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.26 ▲0.21 | 38.75 ▼0.94 | 33.97 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 18.36 ▲0.85 | 614.78 ▼15.32 | 58.12 ▲1.06 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.38 ▲0.17 | 106.73 ▲2.52 | 47.14 ▼1.45 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dropshipping-xox/public/partials/dropshipping-xox-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dropshipping-xox/dropshipping-xox-config.php on line 36
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
10 plugin tags: woocommerce, banggood, aliexpress, dropshipping tool, ecommerce...
dropshipping-xox/dropshipping-xox.php 85% from 13 tests
The principal PHP file in "Dropshix" v. 4.0.14 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.5.1")
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
Good job! No executable or dangerous file extensions detected43,511 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 58 | 7,376 | 18,294 | 26,859 |
CSS | 78 | 214 | 249 | 13,386 |
PHP | 15 | 390 | 770 | 2,843 |
SVG | 1 | 0 | 0 | 288 |
Sass | 2 | 27 | 2 | 134 |
Markdown | 1 | 0 | 0 | 1 |
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.29 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 2 | 2.08% |
▷ Public methods | 81 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 15.62% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/DataTables/DataTables-1.10.16/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/js/DataTables/DataTables-1.10.16/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/js/DataTables/DataTables-1.10.16/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/js/DataTables/DataTables-1.10.16/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/css/fancybox/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |