Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.24ms] Passed 4 tests
Server-side resources used by Very Simple WP Statistics Bars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.85 ▼3.68 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.60 ▼2.64 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.02 ▼2.51 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 101.25 ▼0.13 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.26 ▲4.68 |
VSWP Statistics /wp-admin/options-general.php?page=very-simple-wp-statistics-settings | 3.26 | 31.56 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Very Simple WP Statistics Bars
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.21 ▼1.19 | 2.01 ▲0.29 | 42.82 ▼2.28 |
Dashboard /wp-admin | 2,214 ▲32 | 6.06 ▲0.24 | 105.25 ▲0.36 | 42.60 ▼4.67 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▲0.01 | 34.94 ▼7.11 | 34.09 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.37 ▲0.16 | 658.06 ▼19.36 | 55.54 ▼11.14 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.31 ▲0.14 | 107.78 ▼1.18 | 46.77 ▲1.03 |
VSWP Statistics /wp-admin/options-general.php?page=very-simple-wp-statistics-settings | 977 | 2.23 | 29.57 | 30.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- 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
- > GET request to /wp-admin/options-general.php?page=very-simple-wp-statistics-settings
- > Notice in wp-content/plugins/very-simple-wp-statistics/shared/vswps-class-deserializer.php+36
Undefined variable: ouput
SRP Passed 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
Congratulations! This plugin passed the SRP test
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=very-simple-wp-statistics-settings
- > Rendering (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: bars, statistics
very-simple-wp-statistics/very-simple-wp-statistics-settings.php 92% from 13 tests
"Very Simple WP Statistics Bars" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("very-simple-wp-statistics.php" instead of "very-simple-wp-statistics-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin598 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 28 | 238 | 317 |
JavaScript | 2 | 8 | 12 | 205 |
CSS | 1 | 4 | 0 | 40 |
PO File | 1 | 10 | 10 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/right.png | 11.00KB | 1.11KB | ▼ 89.90% |
admin/img/close.png | 30.04KB | 10.56KB | ▼ 64.85% |
public/img/left.png | 10.92KB | 1.11KB | ▼ 89.83% |
public/img/close.png | 30.04KB | 10.56KB | ▼ 64.85% |