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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.98MB] [CPU: ▼0.74ms] Passed 4 tests
A check of server-side resources used by The E-Commerce ERP: Purchasing, Inventory, Fulfillment, Manufacturing, BOM, Accounting, Sales Analysis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 46.56 ▲5.24 |
Dashboard /wp-admin | 4.31 ▲1.01 | 49.07 ▼6.78 |
Posts /wp-admin/edit.php | 4.36 ▲1.01 | 54.68 ▲5.75 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.97 | 95.28 ▼7.18 |
Media Library /wp-admin/upload.php | 4.18 ▲0.95 | 42.82 ▲7.21 |
Server storage [IO: ▲8.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 336 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for The E-Commerce ERP: Purchasing, Inventory, Fulfillment, Manufacturing, BOM, Accounting, Sales Analysis
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.15 | 1.70 ▼0.02 | 43.48 ▼4.56 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.01 | 91.99 ▼10.12 | 42.71 ▼6.87 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.02 ▲0.01 | 40.61 ▲2.62 | 36.17 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,531 ▼14 | 23.37 ▼0.12 | 651.57 ▼8.87 | 55.03 ▼1.14 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.31 ▲0.02 | 98.91 ▼12.99 | 45.17 ▼1.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- 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
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/profitori/widget/src/lang/cvtES.php
- > /wp-content/plugins/profitori/widget/src/lang/cvtZH.php
- > /wp-content/plugins/profitori/includes/enqueue.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
file_get_contents(ZH.manual.json): failed to open stream: No such file or directory in wp-content/plugins/profitori/widget/src/lang/cvtZH.php on line 27
- > PHP Warning
file_get_contents(ES.csv): failed to open stream: No such file or directory in wp-content/plugins/profitori/widget/src/lang/cvtES.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/profitori/profitori.php:20
- > PHP Warning
file_get_contents(ZH.dummy.json): failed to open stream: No such file or directory in wp-content/plugins/profitori/widget/src/lang/cvtZH.php on line 27
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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:
- Tags: There are too many tags (28 tag instead of maximum 10)
profitori/profitori.php 92% from 13 tests
This is the main PHP file of "The E-Commerce ERP: Purchasing, Inventory, Fulfillment, Manufacturing, BOM, Accounting, Sales Analysis" version 2.1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.8")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .out - Executable in Linux
- ☣ wp-content/plugins/profitori/widget/src/lang/tx.out
- .out - Executable in Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 262 | 5,063 | 1,009 | 48,696 |
JSON | 17 | 1 | 0 | 8,316 |
PHP | 5 | 469 | 213 | 6,243 |
CSS | 4 | 182 | 14 | 880 |
HTML | 2 | 5 | 20 | 20 |
Bourne Shell | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 671.00 |
▷ Minimum class complexity | 671.00 |
▷ Maximum class complexity | 671.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 195 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 195 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 216 | |
▷ Named functions | 212 | 98.15% |
▷ Anonymous functions | 4 | 1.85% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.27MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widget/src/specs/images/profitori_logo_46x34.png | 0.57KB | 0.30KB | ▼ 47.17% |
images/mono16x16.png | 0.39KB | 0.39KB | ▼ 0.99% |
widget/src/specs/images/btnback2.png | 5.46KB | 7.97KB | 0.00% |
widget/src/specs/images/banner-332x86.png | 7.26KB | 3.81KB | ▼ 47.49% |
widget/src/specs/images/btnback.png | 5.62KB | 8.08KB | 0.00% |