Benchmarks
Plugin footprint 58% 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
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/easy-cc-license/ez_cc_license.php+65
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.26MB] [CPU: ▼11.73ms] Passed 4 tests
This is a short check of server-side resources used by Easy CC License
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.01 ▼7.17 |
Dashboard /wp-admin | 3.38 ▲0.08 | 56.39 ▲4.36 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.62 ▲2.54 |
Add New Post /wp-admin/post-new.php | 4.67 ▼1.21 | 47.04 ▼43.08 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.99 ▲0.80 |
Easy CC License /wp-admin/options-general.php?page=ez-cc-license-settings-page | 3.25 | 29.79 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mbk_ez_cc_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy CC License
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.32 ▼1.34 | 5.50 ▲3.26 | 47.78 ▲2.90 |
Dashboard /wp-admin | 2,228 ▲31 | 4.86 ▼1.00 | 121.16 ▲0.66 | 48.96 ▲2.31 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.09 | 41.10 ▲5.12 | 35.37 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 21.39 ▲3.69 | 647.67 ▲45.85 | 58.22 ▲9.82 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.23 ▼0.19 | 99.45 ▲1.61 | 44.11 ▲2.08 |
Easy CC License /wp-admin/options-general.php?page=ez-cc-license-settings-page | 1,302 | 2.02 | 25.44 | 26.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+200
Undefined index: ez_cc_admin_options_nonce
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+212
Undefined index: action
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+248
Undefined index: field_location
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+287
Undefined index: field_format
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+293
Undefined index: field_worktitle
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+299
Undefined index: field_attribute_to_name
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+305
Undefined index: field_attribute_to_url
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+311
Undefined index: field_sourceurl
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ez-cc-license-settings-page
- > Notice in wp-content/plugins/easy-cc-license/ez_cc_license.php+317
Undefined index: field_morepermissionsurl
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-cc-license/ez_cc_license.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (What the shortcode looks like on a published post) image not found
- Plugin Name: Please specify the plugin name on the first line (
=== easy-cc-license ===
)
easy-cc-license/ez_cc_license.php 92% from 13 tests
"Easy CC License" version 0.91's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("easy-cc-license.php" instead of "ez_cc_license.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin241 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 81 | 241 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 64.25KB | 25.70KB | ▼ 60.00% |