Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.22ms] Passed 4 tests
Server-side resources used by Years Ago Today
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.30 ▼6.80 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.02 ▼1.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.74 ▼4.37 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.80 ▼8.49 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.42 ▲1.73 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Years Ago Today
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.60 ▲0.40 | 1.64 ▼3.26 | 39.94 ▼9.50 |
Dashboard /wp-admin | 2,245 ▲54 | 5.88 ▲0.96 | 96.17 ▼8.74 | 41.56 ▼2.68 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.04 | 38.86 ▲1.05 | 35.32 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.33 ▲0.11 | 592.90 ▼112.08 | 51.00 ▼3.83 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.19 ▲0.01 | 96.54 ▼3.01 | 44.33 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/years-ago-today/tests/phpunit/bootstrap.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/years-ago-today/tests/phpunit/bootstrap.php on line 19
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/years-ago-today/tests/phpunit/bootstrap.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: history, coffee2code, on this day, dashboard, admin
years-ago-today/years-ago-today.php Passed 13 tests
This is the main PHP file of "Years Ago Today" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
Admin dashboard widget (and optional daily email) that lists posts published to your site on this day in years past.
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
Good job! No executable or dangerous file extensions detected887 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 222 | 362 | 646 |
Markdown | 4 | 70 | 0 | 206 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 21 | 31.34% |
▷ Public methods | 65 | 97.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.99% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected