Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲3.99MB] [CPU: ▼281.32ms] Passed 4 tests
An overview of server-side resources used by Cartoon Url
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.90 ▲4.38 | 74.78 ▲21.49 |
Dashboard /wp-admin | 7.91 ▲4.51 | 57.56 ▲23.19 |
Posts /wp-admin/edit.php | 7.91 ▲4.28 | 55.86 ▲14.50 |
Add New Post /wp-admin/post-new.php | 9.77 ▲2.80 | 114.11 ▼1,176.54 |
Media Library /wp-admin/upload.php | 7.91 ▲4.61 | 44.83 ▲15.28 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 7.91 | 40.69 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_api_cache |
fs_active_plugins |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
A check of browser resources used by Cartoon Url
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,844 ▲102 | 16.43 ▲0.48 | 6.02 ▲0.08 | 2.27 ▼0.15 |
Dashboard /wp-admin | 2,966 ▲82 | 6.49 ▼0.04 | 132.84 ▼10.39 | 169.81 ▲4.12 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 3.43 ▲0.01 | 62.51 ▲2.09 | 153.00 ▲11.35 |
Add New Post /wp-admin/post-new.php | 1,660 ▼0 | 19.86 ▲2.13 | 429.08 ▲48.43 | 145.90 ▼23.69 |
Media Library /wp-admin/upload.php | 1,746 ▲45 | 5.72 ▲0.01 | 142.71 ▲7.08 | 202.06 ▲7.52 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,466 | 2.65 | 58.87 | 145.92 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 5 options in the database
- fs_accounts
- fs_debug_mode
- fs_api_cache
- fs_active_plugins
- fs_gdpr
Smoke tests 50% 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)
Good news, no errors were detected
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cartoon-url/freemius/templates/ajax-loader.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/cartoon-url/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/cartoon-url/freemius/templates/partials/network-activation.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2 in cartoon-url/assets to your readme.txt
cartoon-url/cartoon_url.php 92% from 13 tests
The main PHP file in "Cartoon Url" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cartoon-url.php" instead of "cartoon_url.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected41,118 lines of code in 132 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 6,689 | 15,298 | 28,042 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
JavaScript | 4 | 57 | 64 | 271 |
Markdown | 2 | 65 | 0 | 207 |
JSON | 1 | 0 | 0 | 27 |
CSS | 10 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,080 | |
▷ Static methods | 170 | 15.74% |
▷ Public methods | 749 | 69.35% |
▷ Protected methods | 15 | 1.39% |
▷ Private methods | 316 | 29.26% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 97 | 80.83% |
▷ Class constants | 23 | 19.17% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |