Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲1.16MB] [CPU: ▼5.35ms] Passed 4 tests
Analyzing server-side resources used by WP Power Stats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.09 | 47.49 ▲3.05 |
Dashboard /wp-admin | 4.51 ▲1.16 | 55.91 ▼6.56 |
Posts /wp-admin/edit.php | 4.56 ▲1.20 | 57.02 ▲3.77 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.20 | 92.43 ▼21.67 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 50.29 ▲9.35 |
Overview /wp-admin/admin.php?page=wp-power-stats-view-1 | 4.47 | 52.10 |
Settings /wp-admin/admin.php?page=wp-power-stats-settings | 4.43 | 43.29 |
Server storage [IO: ▲1.75MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 60 new files
Database: 7 new tables, 8 new options
New tables |
---|
wp_power_stats_pageviews |
wp_power_stats_posts |
wp_power_stats_searches |
wp_power_stats_referers |
wp_power_stats_browsers |
wp_power_stats_visits |
wp_power_stats_os |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
power_stats_internal |
widget_theysaidso_widget |
widget_recent-posts |
widget_foo_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Power Stats
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.29 ▼0.06 | 2.25 ▲0.30 | 46.51 ▲2.87 |
Dashboard /wp-admin | 2,221 ▲47 | 5.64 ▲0.08 | 84.20 ▼9.66 | 39.91 ▼8.43 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.99 ▼0.03 | 37.19 ▲0.94 | 37.37 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 22.91 ▼0.18 | 655.54 ▼23.49 | 60.60 ▲2.05 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.14 ▲0.00 | 96.87 ▼15.92 | 43.72 ▼3.63 |
Overview /wp-admin/admin.php?page=wp-power-stats-view-1 | 2,168 | 10.42 | 80.06 | 55.36 |
Settings /wp-admin/admin.php?page=wp-power-stats-settings | 923 | 1.84 | 26.48 | 26.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 7 tables
- wp_power_stats_posts
- wp_power_stats_referers
- wp_power_stats_os
- wp_power_stats_searches
- wp_power_stats_visits
- wp_power_stats_pageviews
- wp_power_stats_browsers
- Zombie WordPress options detected upon uninstall: 8 options
- widget_foo_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- power_stats_internal
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-power-stats/admin/view/index.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-power-stats/widget.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=wp-power-stats-view-1
- > Console-api (warning) in unknown
https://maps.googleapis.com/maps/api/js?key= 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Responsive design screenshots and some features listed.), #2 (Settings page.)
wp-power-stats/wp-power-stats.php 92% from 13 tests
Analyzing the main PHP file in "WP Power Stats" version 2.2.3
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,651 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 761 | 1,582 | 8,376 |
PO File | 8 | 384 | 391 | 1,030 |
CSS | 3 | 57 | 26 | 192 |
JavaScript | 2 | 14 | 0 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 93.14 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 88 | 46.32% |
▷ Public methods | 113 | 59.47% |
▷ Protected methods | 76 | 40.00% |
▷ Private methods | 1 | 0.53% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 1 | 8.33% |
▷ Class constants | 11 | 91.67% |
▷ Public constants | 11 | 100.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
23 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/direct.png | 1.11KB | 0.26KB | ▼ 76.36% |
screenshot-3.png | 16.74KB | 17.40KB | 0.00% |
admin/images/desktop.png | 1.18KB | 0.34KB | ▼ 70.79% |
admin/images/icon.png | 1.16KB | 0.29KB | ▼ 75.25% |
admin/images/chrome.png | 2.21KB | 1.57KB | ▼ 29.15% |