Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.25ms] Passed 4 tests
A check of server-side resources used by Consume This
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.12 ▼0.74 |
Dashboard /wp-admin | 3.34 ▲0.04 | 60.76 ▲7.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.68 ▲3.20 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.91 ▼3.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.93 ▼0.27 |
Add New /wp-admin/post-new.php?post_type=consumption | 3.28 | 40.99 |
Consumption /wp-admin/edit.php?post_type=consumption | 3.31 | 34.92 |
Consumables /wp-admin/edit-tags.php?taxonomy=consumable&post_type=consumption | 3.26 | 34.93 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Consume This
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.35 ▼0.00 | 1.64 ▼0.59 | 47.01 ▼0.92 |
Dashboard /wp-admin | 2,220 ▲43 | 5.54 ▼0.09 | 85.97 ▼11.69 | 40.48 ▼3.31 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.01 ▲0.01 | 40.00 ▲3.52 | 34.31 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,552 ▲13 | 23.53 ▲5.50 | 680.96 ▲12.35 | 52.81 ▼22.85 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.17 ▼0.12 | 100.61 ▼0.44 | 44.80 ▼4.82 |
Add New /wp-admin/post-new.php?post_type=consumption | 1,666 | 2.79 | 55.18 | 48.59 |
Consumption /wp-admin/edit.php?post_type=consumption | 1,109 | 1.96 | 30.59 | 32.72 |
Consumables /wp-admin/edit-tags.php?taxonomy=consumable&post_type=consumption | 1,277 | 2.12 | 25.30 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=consumption
- > User deprecated in wp-includes/functions.php+5463
Function get_shortcut_link is deprecated since version 4.9.0 with no alternative available.
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/consume-this/theme-files/archive-consumption.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/consume-this/consume-this.php:101
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Add new "Consumption"), #2 (Example display using TwentyTen theme and the included archive-consumption.php template), #3 ("Consume This" bookmarklet)
consume-this/consume-this.php Passed 13 tests
"Consume This" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
A Delicious.com-like bookmarklet for your site. Tell people what you're consuming -- links, music, movies, you name it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin214 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 54 | 100 | 214 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.76MB with 0.49MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 401.90KB | 137.68KB | ▼ 65.74% |
screenshot-1.png | 89.91KB | 37.77KB | ▼ 57.99% |
screenshot-3.png | 288.53KB | 87.64KB | ▼ 69.62% |