Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/statcounter-popular-posts/sc-popular-posts.php+228
Function create_function() is deprecated
Server metrics [RAM: ▼1.29MB] [CPU: ▼184.22ms] Passed 4 tests
A check of server-side resources used by StatCounter Popular Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.34 ▼0.38 | 6.03 ▼18.18 |
Dashboard /wp-admin | 2.36 ▼0.70 | 6.96 ▼36.03 |
Posts /wp-admin/edit.php | 2.36 ▼0.75 | 7.57 ▼36.46 |
Add New Post /wp-admin/post-new.php | 2.36 ▼3.08 | 6.97 ▼636.14 |
Media Library /wp-admin/upload.php | 2.36 ▼0.64 | 6.49 ▼28.24 |
StatCounter Popular Posts /wp-admin/options-general.php?page=SCPP_admin | 2.36 | 6.73 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_spp_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for StatCounter Popular Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.83 ▲0.21 | 8.33 ▼2.36 | 47.83 ▲1.19 |
Dashboard /wp-admin | 2,975 ▲44 | 6.01 ▼0.15 | 133.41 ▼8.04 | 117.44 ▲2.11 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 65.38 ▲2.38 | 86.18 ▼8.10 |
Add New Post /wp-admin/post-new.php | 1,875 ▲377 | 19.14 ▲0.33 | 377.43 ▲0.50 | 107.84 ▲2.48 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.10 ▲0.08 | 139.06 ▼4.69 | 129.83 ▲8.63 |
StatCounter Popular Posts /wp-admin/options-general.php?page=SCPP_admin | 1,077 | 2.10 | 54.76 | 72.49 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/statcounter-popular-posts/sc-popular-posts.php+228
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_spp_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=SCPP_admin
- > Deprecated in wp-content/plugins/statcounter-popular-posts/sc-popular-posts.php+228
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× 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/statcounter-popular-posts/sc-popular-posts.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== statcounter-popular-posts ===
)
statcounter-popular-posts/sc-popular-posts.php 92% from 13 tests
The primary PHP file in "StatCounter Popular Posts" version 0.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("statcounter-popular-posts.php" instead of "sc-popular-posts.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
Success! There were no dangerous files found in this plugin1,653 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 223 | 292 | 1,455 |
HTML | 1 | 11 | 93 | 194 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 118.33 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 93 | |
▷ Static methods | 1 | 1.08% |
▷ Public methods | 77 | 82.80% |
▷ Protected methods | 16 | 17.20% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 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
No PNG files were detected