Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.56ms] Passed 4 tests
This is a short check of server-side resources used by Posts On This Day
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 38.53 ▼2.98 |
Dashboard /wp-admin | 3.57 ▲0.26 | 44.97 ▼3.80 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 45.89 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 82.90 ▲4.49 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 37.52 ▲3.13 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_posts_on_this_day |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Posts On This Day
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.38 | 1.63 ▼0.03 | 38.81 ▼8.93 |
Dashboard /wp-admin | 2,195 ▲18 | 5.54 ▼0.01 | 83.08 ▼8.55 | 36.82 ▼6.48 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.05 | 35.88 ▼1.67 | 33.15 ▼4.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▼0.36 | 657.03 ▼17.25 | 54.20 ▲5.24 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▼0.01 | 110.05 ▲11.10 | 48.12 ▲1.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_posts_on_this_day
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Jeherve\\Posts_On_This_Day\\plugin_dir_path() in wp-content/plugins/posts-on-this-day/posts-on-this-day.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jpd93ea4de39019a1ed66b1221fd3a3f61\\wp_normalize_path() in wp-content/plugins/posts-on-this-day/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/posts-on-this-day/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/posts-on-this-day/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Warning
require_once(wp-content/plugins/posts-on-this-day/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/posts-on-this-day/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/posts-on-this-day/vendor/automattic/jetpack-autoloader/src/CustomAutoloaderPlugin.php:29
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-on-this-day/src/class-posts-on-this-day-widget.php:17
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: widget, on this day
posts-on-this-day/posts-on-this-day.php Passed 13 tests
The entry point to "Posts On This Day" version 1.5.5 is a PHP file that has certain tags in its header comment area
118 characters long description:
Widget to display a list of posts published "on this day" in years past. A good little bit of nostalgia for your blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,399 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 814 | 2,290 | 2,853 |
Markdown | 4 | 162 | 0 | 377 |
JSON | 3 | 0 | 0 | 163 |
XML | 1 | 2 | 1 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 40 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 31 | 16.85% |
▷ Public methods | 141 | 76.63% |
▷ Protected methods | 8 | 4.35% |
▷ Private methods | 35 | 19.02% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin