Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼289.65ms] Passed 4 tests
This is a short check of server-side resources used by This Day In History
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.41 | 56.58 ▲4.27 |
Dashboard /wp-admin | 3.77 ▲0.36 | 35.31 ▲3.24 |
Posts /wp-admin/edit.php | 4.00 ▲0.35 | 39.08 ▲2.79 |
Add New Post /wp-admin/post-new.php | 7.24 ▲0.27 | 95.46 ▼1,168.90 |
Media Library /wp-admin/upload.php | 3.66 ▲0.36 | 32.13 ▲6.33 |
All Events /wp-admin/admin.php?page=this-day-in-history | 3.65 | 26.10 |
Add New /wp-admin/admin.php?page=?page=this-day-in-history&action=new | 3.45 | 20.72 |
This Day In History /wp-admin/options-general.php?page=tdih-settings | 3.63 | 22.55 |
Event Types /wp-admin/edit-tags.php?taxonomy=event_type | 3.65 | 26.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 3 new options
New WordPress options |
---|
tdih_db_version |
widget_this_day_in_history_widget |
tdih_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for This Day In History
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,827 ▲73 | 15.85 ▲0.08 | 5.63 ▼1.01 | 2.34 ▼0.19 |
Dashboard /wp-admin | 2,953 ▲95 | 6.04 ▼0.13 | 121.17 ▼18.14 | 155.15 ▼5.05 |
Posts /wp-admin/edit.php | 2,737 ▲80 | 3.23 ▼0.02 | 72.33 ▲10.02 | 135.69 ▼9.67 |
Add New Post /wp-admin/post-new.php | 1,749 ▲26 | 17.19 ▼4.53 | 403.81 ▼55.03 | 155.83 ▼2.35 |
Media Library /wp-admin/upload.php | 1,747 ▲49 | 5.52 ▼0.02 | 144.99 ▲2.27 | 183.16 ▼3.34 |
All Events /wp-admin/admin.php?page=this-day-in-history | 1,733 | 2.70 | 53.80 | 99.05 |
Add New /wp-admin/admin.php?page=?page=this-day-in-history&action=new | 28 | 0.94 | 0.03 | 16.50 |
This Day In History /wp-admin/options-general.php?page=tdih-settings | 1,147 | 2.37 | 53.87 | 135.02 |
Event Types /wp-admin/edit-tags.php?taxonomy=event_type | 1,622 | 2.76 | 56.73 | 115.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_this_day_in_history_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/this-day-in-history/tdih-list-table.class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/this-day-in-history/uninstall.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/this-day-in-history/tdih-widget.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/this-day-in-history/tdih-list-table.class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/this-day-in-history/tdih-shortcodes.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/this-day-in-history/this-day-in-history.php:38
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/this-day-in-history/tdih-list-table.class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/this-day-in-history/default-single-tdih_event.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=?page=this-day-in-history&action=new
- > Network (severe)
wp-admin/admin.php?page=?page=this-day-in-history&action=new - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: events, history, of the day, birthday, word...
this-day-in-history/this-day-in-history.php Passed 13 tests
"This Day In History" version 3.8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
128 characters long description:
This "On This Day" plugin allows you to enter historic or future events and display them via the included widget and shortcodes.
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 plugin1,135 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 644 | 63 | 1,129 |
CSS | 1 | 8 | 4 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 39.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 18 | 54.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 45.45% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin