Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/esell/Esell.php+50
require_once(wp-content/plugins/esell//includes/init.class.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.19ms] Passed 4 tests
This is a short check of server-side resources used by Esell
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.02 ▼19.89 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.51 ▼3.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.39 ▼1.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.43 ▲0.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.72 ▼0.15 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 175 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Esell
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.69 ▼0.61 | 1.74 ▼0.19 | 40.77 ▼4.64 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲1.03 | 103.28 ▲1.50 | 39.39 ▼6.02 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▲0.02 | 40.55 ▼0.14 | 34.76 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.89 ▼5.49 | 694.80 ▲60.25 | 63.50 ▲6.37 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.16 ▼0.02 | 95.90 ▲2.48 | 40.97 ▼3.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 129× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'DEALBAO_PLUGIN_DIR/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/esell/includes/dealbaoSetting/dealbaoSettingCurl.class.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Dealbao\\Open\\core\\Api' not found in wp-content/plugins/esell/vendor/dealbao/service/src/Open/lib/order/Order.php:7
- > PHP Warning
include(): Failed opening 'DEALBAO_PLUGIN_DIR/includes/Language.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/esell/includes/dealbaoGoods/dealbaoGoodsCurl.class.php on line 9
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/esell/vendor/dealbao/service/demo/Order.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Dealbao\\Open\\core\\Api' not found in wp-content/plugins/esell/vendor/dealbao/service/src/Open/lib/goods/Cate.php:4
- > PHP Warning
Use of undefined constant DEALBAO_DIR_URL - assumed 'DEALBAO_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/esell/includes/dealbaoCategory/dealbaoCategoryBind.php on line 47
- > PHP Warning
Use of undefined constant DEALBAO_PLUGIN_DIR - assumed 'DEALBAO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/esell/includes/dealbaoCollect/dealbaoCollectCurl.class.php on line 10
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/esell/vendor/dealbao/service/demo/Cate.php on line 2
- > PHP Warning
require_once(DEALBAO_PLUGIN_DIR/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/esell/includes/dealbaoSetting/dealbaoSettingCurl.class.php on line 9
- > PHP Warning
Use of undefined constant DEALBAO_DIR_URL - assumed 'DEALBAO_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/esell/includes/dealbaoCollect/dealbaoCollectList.php on line 40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
esell/Esell.php 85% from 13 tests
"Esell" version 5.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("esell.php" instead of "Esell.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin17,532 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 439 | 368 | 8,301 |
PHP | 99 | 1,524 | 1,526 | 5,529 |
CSS | 8 | 127 | 37 | 1,409 |
C | 1 | 188 | 47 | 879 |
LESS | 2 | 22 | 20 | 584 |
JSON | 6 | 0 | 0 | 233 |
PO File | 1 | 75 | 167 | 163 |
C/C++ Header | 2 | 40 | 46 | 132 |
Markdown | 4 | 63 | 0 | 116 |
reStructuredText | 1 | 94 | 135 | 97 |
m4 | 1 | 11 | 11 | 41 |
YAML | 1 | 5 | 0 | 35 |
XML | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 58 | 100.00% |
▷ Final classes | 2 | 3.45% |
Methods | 246 | |
▷ Static methods | 11 | 4.47% |
▷ Public methods | 242 | 98.37% |
▷ Protected methods | 1 | 0.41% |
▷ Private methods | 3 | 1.22% |
Functions | 73 | |
▷ Named functions | 10 | 13.70% |
▷ Anonymous functions | 63 | 86.30% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/zTree/css/zTreeStyle/img/diy/1_close.png | 0.59KB | 0.33KB | ▼ 42.93% |
lib/zTree/css/zTreeStyle/img/diy/9.png | 0.46KB | 0.32KB | ▼ 30.84% |
images/bg.png | 0.24KB | 0.26KB | 0.00% |
lib/zTree/css/metroStyle/img/metro.png | 5.16KB | 2.61KB | ▼ 49.48% |
lib/zTree/css/zTreeStyle/img/diy/2.png | 0.56KB | 0.41KB | ▼ 26.67% |