Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/caperz/caperz.php+121
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼197.73ms] Passed 4 tests
An overview of server-side resources used by Caperz
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 4.88 ▼23.66 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.53 ▼44.90 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 5.30 ▼42.38 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.46 ▼672.96 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 6.82 ▼30.66 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wp_caperz |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Caperz
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.99 ▲0.39 | 12.49 ▲3.79 | 52.87 ▼1.63 |
Dashboard /wp-admin | 2,967 ▲39 | 6.10 ▼0.01 | 147.96 ▼13.93 | 126.40 ▲6.34 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 66.66 ▼1.53 | 93.21 ▼9.05 |
Add New Post /wp-admin/post-new.php | 1,500 ▼0 | 18.78 ▲0.02 | 421.47 ▲13.95 | 111.60 ▲0.20 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▲0.01 | 171.32 ▲15.56 | 142.85 ▲25.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/caperz/caperz.php+121
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_wp_caperz
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/caperz/caperz.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== caperz ===
) - Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Add a description for screenshot #2 in caperz/assets to your readme.txt
caperz/caperz.php Passed 13 tests
The principal PHP file in "Caperz" v. 0.1 is loaded by WordPress automatically on each request
37 characters long description:
Show activities for kids on your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin89 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 20 | 89 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin