Benchmarks
Plugin footprint 58% 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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/simple-post-box/simplepost-box.php+15
Undefined variable: wp_version
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.59ms] Passed 4 tests
This is a short check of server-side resources used by Simple Post Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.01 | 60.76 ▲11.41 |
Dashboard /wp-admin | 3.57 ▲0.01 | 52.90 ▼3.01 |
Posts /wp-admin/edit.php | 3.69 ▲0.01 | 48.59 ▼2.31 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.01 | 86.19 ▼10.44 |
Media Library /wp-admin/upload.php | 3.50 ▲0.01 | 37.44 ▼2.58 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Post Box: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲142 | 13.93 ▼0.30 | 8.62 ▲6.90 | 42.74 ▼5.82 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.05 | 90.72 ▼8.68 | 39.34 ▼6.42 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▼0.01 | 35.06 ▼3.19 | 32.34 ▼6.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.78 ▼5.52 | 699.40 ▼54.09 | 59.91 ▼4.33 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.03 | 104.18 ▼7.24 | 43.86 ▼3.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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_bloginfo() in wp-content/plugins/simple-post-box/simplepost-box.php:18
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/simple-post-box/simplepost-box.php on line 15
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== simple-post-box ===
) - Donate link: Please fix this invalid url: ""
- Screenshots: Add an image for screenshot #2 (screenshot-2.png)
simple-post-box/simplepost-box.php 85% from 13 tests
The primary PHP file in "Simple Post Box" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 250 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-post-box.php" instead of "simplepost-box.php")
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
There were no executable files found in this plugin110 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 12 | 53 |
CSS | 1 | 5 | 0 | 31 |
JavaScript | 1 | 3 | 0 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/stock_post.png | 2.73KB | 2.10KB | ▼ 23.08% |
img/box.png | 4.47KB | 3.41KB | ▼ 23.79% |