Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/today-in-history/today_in_history.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; TIH_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼54.16ms] Passed 4 tests
Server-side resources used by Today In History
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.13 ▼37.99 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.49 ▼42.56 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 11.26 ▼41.83 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 11.50 ▼94.26 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.99 ▼26.41 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_tih-widget |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Today In History
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.50 | 1.66 ▼0.28 | 40.15 ▼4.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.67 ▲0.09 | 90.44 ▼10.22 | 43.56 ▼1.14 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.03 | 40.12 ▲1.18 | 37.09 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.61 ▲0.62 | 688.94 ▼30.88 | 65.82 ▲3.96 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.04 | 103.08 ▼10.17 | 42.75 ▼4.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TIH_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_tih-widget
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/today-in-history/today_in_history.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Interface), #2 (Example Widget Output)
today-in-history/today_in_history.php 92% from 13 tests
This is the main PHP file of "Today In History" version 0.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("today-in-history.php" instead of "today_in_history.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin204 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 58 | 39 | 204 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 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
PNG images were not found in this plugin