Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▲0.95ms] Passed 4 tests
A check of server-side resources used by Crypto Price Widgets - CryptoWP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.26 ▼0.31 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.16 ▲2.80 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.92 ▼3.23 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 92.57 ▲6.62 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.98 ▲4.53 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_cryptowp_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
cryptowp |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Crypto Price Widgets - CryptoWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 13.29 ▼1.02 | 1.75 ▼0.03 | 42.47 ▲3.23 |
Dashboard /wp-admin | 2,218 ▲26 | 4.81 ▼0.12 | 101.30 ▼23.95 | 39.53 ▼3.63 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 1.99 ▲0.00 | 34.15 ▼3.05 | 34.62 ▲5.07 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.33 ▲5.88 | 622.36 ▼58.12 | 50.79 ▼3.92 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.23 ▲0.03 | 99.16 ▼9.75 | 43.19 ▼0.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_cryptowp_widget
- cryptowp
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: id in wp-content/plugins/cryptowp/templates/cryptowp.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cryptowp/templates/admin/settings-coin.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/cryptowp/templates/admin/settings-page.php:3
- > PHP Notice
Undefined variable: show in wp-content/plugins/cryptowp/templates/cryptowp-text.php on line 12
- > PHP Notice
Undefined variable: show in wp-content/plugins/cryptowp/templates/cryptowp-text.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function cryptowp_strings() in wp-content/plugins/cryptowp/admin/admin.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cryptowp/admin/widget.php:8
- > PHP Notice
Undefined variable: show in wp-content/plugins/cryptowp/templates/cryptowp-text.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cryptowp/templates/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cryptowp/templates/widget.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== cryptowp ===
) - Tags: There are too many tags (15 tag instead of maximum 10)
cryptowp/cryptowp.php 92% from 13 tests
The main PHP file in "Crypto Price Widgets - CryptoWP" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)
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
Good job! No executable or dangerous file extensions detected1,162 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 205 | 258 | 748 |
CSS | 2 | 106 | 37 | 314 |
JavaScript | 2 | 19 | 26 | 100 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin