Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/crypto-tips/crypto.php+12
include(jsonRPCclient.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.97MB] [CPU: ▼61.88ms] Passed 4 tests
Analyzing server-side resources used by Crypto tips
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.13 ▼37.96 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.34 ▼56.17 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.32 ▼41.33 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.88 ▼112.07 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.58 ▼32.85 |
Crypto tips settings /wp-admin/plugins.php?page=cryptocoinadmin | 2.05 | 6.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Crypto tips
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,690 ▼56 | 14.45 ▲0.31 | 1.40 ▼0.64 | 27.92 ▼22.21 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.00 | 120.98 ▼3.92 | 43.93 ▼5.37 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▲0.04 | 37.20 ▼16.16 | 32.02 ▼5.41 |
Add New Post /wp-admin/post-new.php | 45 ▼1,474 | 0.44 ▼20.89 | 0.08 ▼767.09 | 11.45 ▼65.80 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.25 ▲0.05 | 114.07 ▼6.09 | 73.92 ▲21.54 |
Crypto tips settings /wp-admin/plugins.php?page=cryptocoinadmin | 920 | 2.02 | 29.32 | 28.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/crypto-tips/crypto.php+12
include(jsonRPCclient.php): failed to open stream: No such file or directory
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/plugins.php?page=cryptocoinadmin
- > Warning in wp-content/plugins/crypto-tips/crypto.php+12
include(jsonRPCclient.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/plugins.php?page=cryptocoinadmin
- > Warning in wp-content/plugins/crypto-tips/crypto.php+12
include(): Failed opening 'jsonRPCclient.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/plugins.php?page=cryptocoinadmin
- > Notice in wp-content/plugins/crypto-tips/crypto-admin.php+17
Undefined index: savesettings
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
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/crypto-newpost.php:4
- > PHP Warning
include(): Failed opening 'jsonRPCclient.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/crypto-tips/cryptotips/crypto.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/crypto-newpost.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/cryptotips/crypto-newpost.php:4
- > PHP Warning
include(jsonRPCclient.php): failed to open stream: No such file or directory in wp-content/plugins/crypto-tips/cryptotips/crypto.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crypto-tips/cryptotips/crypto-newpost.php:4
- > PHP Warning
include(): Failed opening 'jsonRPCclient.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/crypto-tips/crypto.php on line 12
- > PHP Warning
include(jsonRPCclient.php): failed to open stream: No such file or directory in wp-content/plugins/crypto-tips/crypto.php on line 12
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== crypto-tips ===
)
crypto-tips/crypto.php 92% from 13 tests
This is the main PHP file of "Crypto tips" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crypto-tips.php" instead of "crypto.php")
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
There were no executable files found in this plugin292 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 63 | 84 | 292 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 12.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin