Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/shopp-clockwork/shopp-clockwork.php+47
Accessing static property Shopp_Clockwork::$apikey as non static
Server metrics [RAM: ▼1.78MB] [CPU: ▼51.16ms] Passed 4 tests
An overview of server-side resources used by Shopp + Clockwork
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 5.95 ▼31.46 |
Dashboard /wp-admin | 2.24 ▼1.11 | 11.84 ▼45.75 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 7.19 ▼39.75 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 6.72 ▼87.69 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 7.73 ▼28.76 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Shopp + Clockwork
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.10 ▼0.25 | 1.71 ▲0.05 | 44.47 ▲4.46 |
Dashboard /wp-admin | 2,200 ▲23 | 5.61 ▼0.01 | 96.38 ▲7.94 | 43.07 ▲1.83 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▲0.03 | 33.09 ▼4.86 | 43.86 ▲10.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.56 ▼0.06 | 691.16 ▲5.55 | 55.07 ▲4.14 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.22 ▲0.01 | 100.62 ▼12.91 | 45.11 ▼6.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/shopp-clockwork/shopp-clockwork.php+47
Accessing static property Shopp_Clockwork::$apikey as non static
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-clockwork/shopp-clockwork.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (The Shopp + Clockwork WordPress admin page.), #2 (An additional view of the Shopp + Clockwork WordPress admin page.), #3 (Shopp + Clockwork iPhone 4S demo.)
shopp-clockwork/shopp-clockwork.php Passed 13 tests
"Shopp + Clockwork" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
133 characters long description:
Merchants who have a WordPress ecommerce store are notified of new orders via a text message to their mobile phone through Clockwork.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected697 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 132 | 282 | 684 |
CSS | 1 | 3 | 0 | 13 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 31.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 16 | 76.19% |
▷ Protected methods | 5 | 23.81% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.47MB with 0.33MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 110.21KB | 33.74KB | ▼ 69.39% |
screenshot-1.png | 202.81KB | 63.31KB | ▼ 68.78% |
screenshot-2.png | 165.27KB | 47.78KB | ▼ 71.09% |