Benchmarks
Plugin footprint 40% 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
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-parsi-statistics/widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; WPPST_Widget has a deprecated constructor
Server metrics [RAM: ▼1.70MB] [CPU: ▼48.89ms] Passed 4 tests
A check of server-side resources used by WP-Parsi Statistics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.58 ▼32.16 |
Dashboard /wp-admin | 2.30 ▼1.00 | 11.94 ▼32.95 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 11.84 ▼38.49 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 11.07 ▼91.95 |
Media Library /wp-admin/upload.php | 2.30 ▼0.92 | 11.85 ▼19.25 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_ip_log |
wp_p_statistic |
wp_static |
New WordPress options |
---|
widget_wppsts-widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
wp_parsi_statistics_ver |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP-Parsi Statistics: 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,801 ▲66 | 13.19 ▼1.20 | 2.20 ▲0.10 | 44.63 ▼1.75 |
Dashboard /wp-admin | 2,209 ▲27 | 4.85 ▼1.05 | 95.90 ▼5.14 | 38.09 ▼2.05 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.08 ▲0.08 | 36.91 ▼4.44 | 32.83 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,514 ▼21 | 17.66 ▼5.60 | 676.79 ▲44.63 | 51.67 ▼1.84 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.01 | 95.00 ▼10.64 | 40.54 ▼6.82 |
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
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in WPPST_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_wppsts-widget
- can_compress_scripts
- 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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-parsi-statistics/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-parsi-statistics/upgrade.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-parsi-statistics/install.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-parsi-statistics/wp-parsi-statistics.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
wp-parsi-statistics/wp-parsi-statistics.php Passed 13 tests
The primary PHP file in "WP-Parsi Statistics" version 1.5 is used by WordPress to initiate all plugin functionality
128 characters long description:
This plugin provide you full statistic of your site. You can show statistics with widget or many usefull function in your theme.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected938 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 200 | 42 | 827 |
PO File | 1 | 38 | 43 | 87 |
CSS | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 18.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 85.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 14.52% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.37KB | 8.17KB | ▼ 65.05% |