Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.60ms] 50% from 4 tests
Analyzing server-side resources used by Cryptocurrency Widgets Pack
Please have a look at the following items
- RAM: The total memory usage must be kept under 10MB (currently 14.20MB on /wp-admin/post-new.php?post_type=mcwp)
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,212.88ms on /wp-admin/post-new.php?post_type=mcwp)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 46.30 ▲3.81 |
Dashboard /wp-admin | 3.56 ▲0.22 | 49.95 ▼16.86 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 50.22 ▼1.51 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 104.00 ▼3.85 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 39.98 ▲8.10 |
Add New /wp-admin/post-new.php?post_type=mcwp | 14.20 | 1,212.88 |
Upgrade to PRO ➤ /wp-admin/edit.php?post_type=mcwp&page=mcwp-premium | 3.52 | 37.02 |
All Widgets /wp-admin/edit.php?post_type=mcwp | 3.53 | 35.52 |
Server storage [IO: ▲0.80MB] [DB: ▲0.25MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 71 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mcwp_coins |
New WordPress options |
---|
mcwp-top-notice |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
mcwp-notice |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cryptocurrency Widgets Pack
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲200 | 13.94 ▼0.06 | 10.06 ▲7.97 | 37.42 ▼6.47 |
Dashboard /wp-admin | 2,270 ▲93 | 5.96 ▲0.27 | 95.66 ▼1.22 | 41.04 ▼2.00 |
Posts /wp-admin/edit.php | 2,185 ▲85 | 2.39 ▲0.38 | 45.97 ▲9.01 | 38.94 ▲4.32 |
Add New Post /wp-admin/post-new.php | 1,581 ▲34 | 23.70 ▲0.34 | 611.99 ▼73.78 | 33.86 ▼17.27 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.65 ▲0.34 | 103.20 ▼1.63 | 45.27 ▼2.85 |
Add New /wp-admin/post-new.php?post_type=mcwp | 12,596 | 4.00 | 210.75 | 247.88 |
Upgrade to PRO ➤ /wp-admin/edit.php?post_type=mcwp&page=mcwp-premium | 1,525 | 2.12 | 26.51 | 69.95 |
All Widgets /wp-admin/edit.php?post_type=mcwp | 1,161 | 2.35 | 34.63 | 30.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- mcwp-notice
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- mcwp-top-notice
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined property: stdClass::$crypto_ticker_position in wp-content/plugins/cryptocurrency-widgets-pack/includes/settings.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-widgets-pack/includes/duplicate.php:97
- > PHP Notice
Undefined variable: data in wp-content/plugins/cryptocurrency-widgets-pack/includes/settings.php on line 5
- > PHP Warning
Creating default object from empty value in wp-content/plugins/cryptocurrency-widgets-pack/includes/settings.php on line 5
- > PHP Notice
Trying to get property 'crypto_ticker' of non-object in wp-content/plugins/cryptocurrency-widgets-pack/includes/settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cryptocurrency-widgets-pack/includes/settings.php:11
- > PHP Notice
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: crypto widgets, cryptocurrency, shortcodes, table, bitcoin price...
cryptocurrency-widgets-pack/cryptocurrency-widgets-pack.php Passed 13 tests
Analyzing the main PHP file in "Cryptocurrency Widgets Pack" version 2.0.1
86 characters long description:
Price ticker, table, cards, label widget for all cryptocurrencies using Coingecko API.
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
No dangerous file extensions were detected4,897 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 69 | 52 | 2,666 |
PHP | 6 | 257 | 65 | 1,476 |
JavaScript | 7 | 83 | 19 | 692 |
SVG | 3 | 22 | 0 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 3 | 7.32% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
45 PNG files occupy 0.43MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pro-settings/list-settings.png | 11.47KB | 4.08KB | ▼ 64.46% |
assets/public/img/error.png | 112.35KB | 49.48KB | ▼ 55.96% |
assets/admin/cards/card2.png | 2.23KB | 1.02KB | ▼ 53.99% |
assets/pro-settings/realtime-settings.png | 6.40KB | 2.18KB | ▼ 65.89% |
assets/admin/images/star.png | 31.27KB | 10.61KB | ▼ 66.08% |