Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/shopp-video-tutorials/shopp-video-tutorials.php+42
Accessing static property Shopp_Video_Tutorials::$name as non static
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.39ms] Passed 4 tests
Analyzing server-side resources used by Shopp + Video Tutorials
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.90 ▼38.51 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.73 ▼43.89 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.99 ▼43.84 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.98 ▼91.32 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.02 ▼29.57 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Shopp + Video Tutorials
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.35 ▼0.01 | 1.99 ▲0.22 | 44.03 ▼4.01 |
Dashboard /wp-admin | 2,197 ▲23 | 5.54 ▼0.04 | 84.55 ▼17.84 | 39.97 ▼6.76 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 2.02 ▼0.00 | 36.43 ▲0.56 | 34.28 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.21 ▲0.17 | 676.34 ▲58.99 | 49.50 ▼8.38 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.24 ▲0.03 | 112.26 ▲6.95 | 48.67 ▲3.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/shopp-video-tutorials/shopp-video-tutorials.php+42
Accessing static property Shopp_Video_Tutorials::$name as non static
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-video-tutorials/shopp-video-tutorials.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (The Shopp + Video Tutorials WordPress admin page.), #2 (An additional view of the Shopp + Video Tutorials WordPress admin page.)
shopp-video-tutorials/shopp-video-tutorials.php Passed 13 tests
The principal PHP file in "Shopp + Video Tutorials" v. 1.3 is loaded by WordPress automatically on each request
70 characters long description:
Learn how to use the Shopp ecommerce plugin from your WordPress admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin345 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 22 | 332 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.37MB with 0.24MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 275.66KB | 102.99KB | ▼ 62.64% |
screenshot-1.png | 107.90KB | 37.67KB | ▼ 65.08% |