Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼153.17ms] Passed 4 tests
An overview of server-side resources used by Installation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.11 | 35.43 ▲3.01 |
Dashboard /wp-admin | 3.18 ▲0.12 | 39.88 ▼4.02 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 45.09 ▼2.58 |
Add New Post /wp-admin/post-new.php | 4.16 ▼1.28 | 47.05 ▼609.09 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 35.02 ▲6.44 |
Add New /wp-admin/post-new.php?post_type=baby | 3.05 | 35.82 |
Babies /wp-admin/edit.php?post_type=baby | 3.16 | 33.13 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Installation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,716 ▲120 | 16.15 ▲0.18 | 8.82 ▼0.98 | 45.60 ▼1.83 |
Dashboard /wp-admin | 3,003 ▲72 | 6.00 ▼0.13 | 133.13 ▼6.35 | 115.90 ▲3.26 |
Posts /wp-admin/edit.php | 2,772 ▲33 | 2.70 ▼0.00 | 67.39 ▲0.34 | 91.03 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,522 ▲22 | 18.54 ▲0.04 | 355.32 ▼8.52 | 109.67 ▲0.68 |
Media Library /wp-admin/upload.php | 1,840 ▲30 | 5.01 ▲0.00 | 153.16 ▲7.60 | 115.50 ▼0.32 |
Add New /wp-admin/post-new.php?post_type=baby | 3,231 | 4.85 | 135.41 | 107.60 |
Babies /wp-admin/edit.php?post_type=baby | 1,455 | 2.61 | 66.34 | 70.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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 errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=baby
- > Notice in wp-content/plugins/wp-born-babies/newbornbabies.php+838
Undefined index: eventmeta_noncename
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-born-babies/templates/single_baby.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-born-babies/newbornbabies.php:15
- > 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 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
wp-born-babies/newbornbabies.php 85% from 13 tests
"Installation" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-born-babies.php" instead of "newbornbabies.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected640 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 180 | 198 | 640 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.64MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/quote_open.png | 27.28KB | 0.46KB | ▼ 98.30% |
screenshot-2.png | 79.54KB | 8.18KB | ▼ 89.72% |
screenshot-3.png | 461.28KB | 56.65KB | ▼ 87.72% |
images/quote_close.png | 26.96KB | 0.31KB | ▼ 98.86% |
screenshot-1.png | 57.09KB | 6.80KB | ▼ 88.10% |