Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/ciusan-simple-statistics/ciusan-simple-statistics.php+88
Function create_function() is deprecated
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.15ms] Passed 4 tests
Server-side resources used by Ciusan Simple Statistics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.23 ▼35.49 |
Dashboard /wp-admin | 2.08 ▼1.22 | 7.61 ▼39.85 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.52 ▼38.84 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.37 ▼94.41 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.04 ▼27.82 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_ciusan_simple_statistics |
Browser metrics Passed 4 tests
A check of browser resources used by Ciusan Simple Statistics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.15 ▼1.27 | 1.54 ▼0.42 | 42.48 ▼5.26 |
Dashboard /wp-admin | 2,203 ▲15 | 5.77 ▲0.88 | 99.30 ▼6.74 | 41.55 ▼2.58 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.03 | 42.62 ▲5.91 | 35.19 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.70 ▼5.40 | 630.38 ▼57.79 | 50.35 ▼7.64 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.02 | 93.89 ▼9.50 | 41.72 ▼5.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/ciusan-simple-statistics/ciusan-simple-statistics.php+88
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_ciusan_simple_statistics
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ciusan-simple-statistics/ciusan-simple-statistics.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Widget on Sidebar.), #2 (Using shortcode on post.), #3 (Widget sidebar option.)
- Tags: There are too many tags (15 tag instead of maximum 10)
ciusan-simple-statistics/ciusan-simple-statistics.php Passed 13 tests
The main PHP script in "Ciusan Simple Statistics" version 1.0 is automatically included on every request by WordPress
22 characters long description:
Show simple statistics
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin75 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 28 | 75 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 17.59KB | 2.59KB | ▼ 85.26% |
screenshot-1.png | 23.38KB | 5.04KB | ▼ 78.43% |
screenshot-2.png | 32.55KB | 9.65KB | ▼ 70.36% |