Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.85ms] Passed 4 tests
Server-side resources used by Crypto Price And Stats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.82 ▼3.15 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.73 ▼1.48 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.65 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.98 ▼8.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.90 ▲4.77 |
Server storage [IO: ▲2.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Crypto Price And Stats
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 13.25 ▼1.39 | 1.98 ▲0.22 | 42.26 ▼3.01 |
Dashboard /wp-admin | 2,218 ▲27 | 6.01 ▲1.10 | 111.33 ▲5.40 | 39.27 ▼8.07 |
Posts /wp-admin/edit.php | 2,101 ▲9 | 2.06 ▲0.05 | 39.53 ▼4.74 | 34.17 ▼6.93 |
Add New Post /wp-admin/post-new.php | 1,530 ▼4 | 23.38 ▲0.44 | 673.69 ▲10.73 | 55.06 ▼0.93 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.18 ▼0.12 | 97.04 ▼20.92 | 42.52 ▼5.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/crypto-price-and-stats/admin/partials/crypto-currency-file.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 66
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 45
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/crypto-price-and-stats/admin/partials/crypto-price-and-stats-admin-display.php:23
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 31
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 38
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 59
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 23
- > PHP Notice
Undefined variable: choose_widget_style in wp-content/plugins/crypto-price-and-stats/public/partials/crypto-price-and-stats-public-display.php on line 52
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Invalid version format
crypto-price-and-stats/crypto-price-and-stats.php Passed 13 tests
"Crypto Price And Stats" version 0.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Crypto Price And Stats is a WordPress plugin displays live prices and stats of crypto coins.
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
No dangerous file extensions were detected5,183 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 185 | 544 | 2,756 |
JavaScript | 16 | 344 | 1,157 | 1,449 |
CSS | 4 | 166 | 10 | 978 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.20MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/img/coin-ticker.png | 21.72KB | 0.00KB | ▼ 100.00% |
(invalid) admin/img/coin-ticker-list.png | 28.97KB | 0.00KB | ▼ 100.00% |
(invalid) admin/img/coin-price-static-headline.png | 25.41KB | 0.00KB | ▼ 100.00% |
(invalid) admin/img/coin-list-widget.png | 24.83KB | 0.00KB | ▼ 100.00% |
(invalid) admin/img/coin-heatmap.png | 27.50KB | 0.00KB | ▼ 100.00% |