Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/a-year-ago-today/year_ago.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; jaw_year_ago_my_info has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼186.87ms] Passed 4 tests
Analyzing server-side resources used by A Year Ago Today
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.05 | 8.29 ▼14.33 |
Dashboard /wp-admin | 1.81 ▼1.26 | 4.65 ▼34.61 |
Posts /wp-admin/edit.php | 1.81 ▼1.31 | 3.80 ▼27.84 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.64 | 3.84 ▼663.28 |
Media Library /wp-admin/upload.php | 1.81 ▼1.20 | 3.45 ▼21.74 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_jaw_year_ago_my_info |
Browser metrics Passed 4 tests
An overview of browser requirements for A Year Ago Today
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲40 | 15.71 ▼0.34 | 5.54 ▲0.06 | 77.14 ▲2.96 |
Dashboard /wp-admin | 2,930 ▲31 | 6.05 ▼0.12 | 115.02 ▼20.29 | 168.03 ▼4.22 |
Posts /wp-admin/edit.php | 2,743 ▲3 | 3.24 ▲0.00 | 63.59 ▼0.92 | 134.07 ▼4.70 |
Add New Post /wp-admin/post-new.php | 3,807 ▲72 | 18.66 ▲0.63 | 415.07 ▼18.36 | 158.32 ▼13.85 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.49 ▼0.00 | 148.82 ▲5.35 | 183.15 ▲1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/a-year-ago-today/year_ago.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; jaw_year_ago_my_info has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_jaw_year_ago_my_info
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-year-ago-today/year_ago.php:13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widget, old posts, sidebar
a-year-ago-today/year_ago.php 92% from 13 tests
The principal PHP file in "A Year Ago Today" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("a-year-ago-today.php" instead of "year_ago.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected63 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 9 | 63 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected