Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.57ms] Passed 4 tests
A check of server-side resources used by How Old Am I
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.70 ▼3.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 55.08 ▲5.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.36 ▲2.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.77 ▼10.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.71 ▼2.40 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for How Old Am I
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.44 ▲0.09 | 1.63 ▼0.16 | 39.81 ▼2.72 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.11 | 93.79 ▲2.32 | 40.25 ▼1.60 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▼0.00 | 39.16 ▲2.61 | 36.06 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.06 ▲0.12 | 609.97 ▼91.22 | 58.36 ▲3.01 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.07 | 98.54 ▼4.50 | 45.55 ▲0.56 |
How Old Am I /wp-admin/how-old-am-i.php | 26 | 0.42 | 0.08 | 13.65 |
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
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/how-old-am-i/how-old-am-i.php:389
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/how-old-am-i.php
- > Network (severe)
wp-admin/how-old-am-i.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The plugin's settings), #2 (Example using default settings), #3 (Example using custom format with age in numbers), #4 (Example using Custom format with age in full), #5 (Example using shortcode attributes)
how-old-am-i/how-old-am-i.php Passed 13 tests
The main PHP file in "How Old Am I" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Calculates and displays your age in several formats.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin449 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 24 | 449 |
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.47 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 17.00 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 30.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 33.33% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin