Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.02ms] Passed 4 tests
Server-side resources used by Crazy Pills
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 44.75 ▲1.84 |
Dashboard /wp-admin | 3.38 ▲0.07 | 51.82 ▼0.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.52 ▼6.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.54 ▼7.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.42 ▲3.65 |
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: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Crazy Pills
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.27 ▼0.10 | 1.70 ▼0.41 | 38.23 ▼5.42 |
Dashboard /wp-admin | 2,197 ▲20 | 5.65 ▲0.03 | 88.69 ▼8.68 | 40.48 ▼13.19 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 41.28 ▼1.67 | 38.79 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.93 ▼0.11 | 643.56 ▼31.16 | 58.60 ▼5.97 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▼0.06 | 102.31 ▼3.60 | 45.11 ▼4.95 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/crazy-pills/includes/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crazy-pills/init.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: styles, editor, notification, tinymce, button...
crazy-pills/init.php 77% from 13 tests
"Crazy Pills" version 0.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crazy-pills.php" instead of "init.php")
- Domain Path: The domain path folder does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin258 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 40 | 141 |
JavaScript | 1 | 18 | 0 | 71 |
CSS | 2 | 0 | 0 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/warning_32.png | 3.74KB | 1.20KB | ▼ 67.89% |
images/black_checklist.png | 3.18KB | 0.57KB | ▼ 82.02% |
images/bullet_yellow.png | 2.85KB | 0.25KB | ▼ 91.25% |
images/blue_checklist.png | 3.23KB | 0.59KB | ▼ 81.81% |
images/bullet_blue.png | 2.85KB | 0.25KB | ▼ 91.26% |