Benchmarks
Plugin footprint 83% 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: ▲0.05MB] [CPU: ▲1.71ms] Passed 4 tests
Analyzing server-side resources used by Cryptocurrency Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.31 ▲3.71 |
Dashboard /wp-admin | 3.35 ▲0.04 | 53.55 ▲2.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.09 ▲1.28 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.27 ▼0.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.39 ▲10.44 |
Cryptocurrency Shortcodes /wp-admin/options-general.php?page=rynerg_rgcs | 3.32 | 35.79 |
Server storage [IO: ▲0.33MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
rynerg_rgcs_number_of_currencies_to_retrieve |
rynerg_rgcs_refresh_json_content |
rynerg_rgcs_api_crypto_json |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
rynerg_crypto_current_plugin_version |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cryptocurrency Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲216 | 13.72 ▼0.95 | 6.38 ▲4.52 | 41.65 ▼11.76 |
Dashboard /wp-admin | 2,237 ▲49 | 5.00 ▼0.90 | 120.66 ▲4.74 | 41.67 ▲1.32 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.09 ▲0.10 | 41.88 ▲5.79 | 33.57 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.21 ▲5.78 | 674.90 ▲10.80 | 60.59 ▲9.90 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.35 ▲0.04 | 103.45 ▲0.15 | 42.62 ▼2.32 |
Cryptocurrency Shortcodes /wp-admin/options-general.php?page=rynerg_rgcs | 1,268 | 2.20 | 48.01 | 78.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 10 options in the database
- rynerg_rgcs_api_crypto_json
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- rynerg_rgcs_number_of_currencies_to_retrieve
- db_upgraded
- rynerg_rgcs_refresh_json_content
- widget_recent-comments
- rynerg_crypto_current_plugin_version
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-others.php
- > /wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-shortcode.php
- > /wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-screenshots.php
- > /wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-select.php
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: num_retrieve in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-general.php on line 47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-options-ajax.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cryptocurrency-shortcodes/my-admin/admin-return-html-templates/rg-shortcode-template-carousel.php:7
- > PHP Warning
Use of undefined constant rg__Plugin_LINK - assumed 'rg__Plugin_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-screenshots.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cryptocurrency-shortcodes/my-admin/admin-return-html-templates/rg-shortcode-template.php:46
- > PHP Notice
Undefined variable: items in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-select.php on line 28
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-select.php on line 28
- > PHP Warning
Use of undefined constant rg__Plugin_LINK - assumed 'rg__Plugin_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-screenshots.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cryptocurrency-shortcodes/my-admin/rgcs-template-tab-content-general.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cryptocurrency-shortcodes/my-admin/admin-return-html-templates/rg-shortcode-template-list.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The first screenshot Carousel-Example.png displays the example for the Carousel Type of display) image missing
cryptocurrency-shortcodes/functions.php 69% from 13 tests
The primary PHP file in "Cryptocurrency Shortcodes" version 0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("cryptocurrency-shortcodes.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,580 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 281 | 283 | 1,229 |
JavaScript | 3 | 126 | 26 | 726 |
CSS | 2 | 46 | 20 | 624 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview 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.31 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
my-images/List-Example.PNG | 25.14KB | 11.42KB | ▼ 54.59% |
my-images/image1.PNG | 43.20KB | 17.25KB | ▼ 60.07% |
my-images/image0.PNG | 43.94KB | 20.39KB | ▼ 53.59% |
my-images/rgcs_crypto_logo.png | 38.24KB | 39.46KB | 0.00% |
my-images/image2.PNG | 66.44KB | 32.45KB | ▼ 51.16% |