Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼18.55ms] Passed 4 tests
An overview of server-side resources used by Display Simple Post View Count
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 24.97 ▼19.85 |
Dashboard /wp-admin | 3.26 ▼0.05 | 35.54 ▼13.07 |
Posts /wp-admin/edit.php | 3.33 ▼0.03 | 41.99 ▼7.92 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 74.69 ▼33.36 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 30.60 ▼6.00 |
SPCD Options /wp-admin/options-general.php?page=spcd-options | 3.24 | 31.86 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
spcd_frontend_css |
widget_spcd_widget |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
spcd_count_text |
Browser metrics Passed 4 tests
A check of browser resources used by Display Simple Post View Count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.37 ▲0.01 | 1.78 ▼0.05 | 42.72 ▼4.48 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.06 | 89.33 ▼2.11 | 42.03 ▼1.50 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.04 ▲0.02 | 36.19 ▼1.45 | 36.67 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 22.98 ▼0.22 | 656.78 ▼33.65 | 57.06 ▲5.80 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.04 | 99.98 ▼10.33 | 44.65 ▼4.73 |
SPCD Options /wp-admin/options-general.php?page=spcd-options | 922 | 2.18 | 25.64 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- spcd_frontend_css
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- spcd_count_text
- widget_spcd_widget
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=spcd-options
- > Warning in wp-content/plugins/simple-post-counter-display/spcd-function.php+256
session_start(): Cannot start session when headers already sent
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-post-counter-display/spcd-function.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-post-counter-display/simple-post-counter-display.php:14
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #4 in simple-post-counter-display/assets to your readme.txt
- Donate link: Please fix this invalid url: ""
simple-post-counter-display/simple-post-counter-display.php Passed 13 tests
The principal PHP file in "Display Simple Post View Count" v. 1.0.0 is loaded by WordPress automatically on each request
37 characters long description:
A plugin to simple post count display
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin315 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 55 | 48 | 313 |
CSS | 1 | 0 | 1 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 33.78KB | 17.92KB | ▼ 46.94% |
screenshot-4.png | 45.97KB | 22.83KB | ▼ 50.34% |
screenshot-2.png | 33.42KB | 15.42KB | ▼ 53.86% |
screenshot-3.png | 33.51KB | 15.57KB | ▼ 53.53% |