Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.36ms] Passed 4 tests
Server-side resources used by Web To Print Shop : uDraw - Widescreen UI
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.75 ▼2.58 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.67 ▼4.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.96 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.38 ▼17.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.34 ▼3.69 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Web To Print Shop : uDraw - Widescreen UI: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.37 ▲0.02 | 1.58 ▲0.03 | 39.72 ▲3.56 |
Dashboard /wp-admin | 2,203 ▲22 | 5.62 ▼0.14 | 91.09 ▼13.52 | 38.31 ▼2.06 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▲0.01 | 41.79 ▲4.09 | 34.83 ▼5.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 22.91 ▼0.31 | 685.20 ▲22.07 | 56.07 ▼7.78 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▼0.02 | 103.86 ▼0.67 | 49.49 ▼0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(): Failed opening 'UDRAW_PLUGIN_DIR/designer/designer-header-init.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/web-to-print-shop-udraw-widescreen-ui/skin/designer.php on line 3
- > PHP Warning
Use of undefined constant UDRAW_PLUGIN_DIR - assumed 'UDRAW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/web-to-print-shop-udraw-widescreen-ui/skin/designer.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/web-to-print-shop-udraw-widescreen-ui/web-to-print-shop-udraw-widescreen-ui.php:17
- > PHP Warning
include_once(UDRAW_PLUGIN_DIR/designer/designer-header-init.php): failed to open stream: No such file or directory in wp-content/plugins/web-to-print-shop-udraw-widescreen-ui/skin/designer.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'uDraw' not found in wp-content/plugins/web-to-print-shop-udraw-widescreen-ui/skin/designer.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== web-to-print-shop-udraw-widescreen-ui ===
)
web-to-print-shop-udraw-widescreen-ui/web-to-print-shop-udraw-widescreen-ui.php 92% from 13 tests
The main PHP file in "Web To Print Shop : uDraw - Widescreen UI" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.1")
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
Success! There were no dangerous files found in this plugin2,480 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 19 | 1,230 |
CSS | 1 | 21 | 6 | 639 |
SVG | 1 | 0 | 1 | 440 |
JavaScript | 1 | 4 | 8 | 171 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.91 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin