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.05MB] [CPU: ▼2.76ms] Passed 4 tests
A check of server-side resources used by DayCounts Up To Date
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 48.13 ▲3.96 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.69 ▼8.18 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.40 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.99 ▼2.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.46 ▲1.87 |
DayCounts /wp-admin/options-general.php?page=uptodate | 3.24 | 36.30 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for DayCounts Up To Date
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼1.08 | 1.69 ▼0.21 | 37.97 ▼7.87 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.21 | 108.31 ▼42.64 | 38.75 ▼17.01 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.07 | 39.74 ▲4.45 | 36.95 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.63 ▼0.19 | 644.14 ▼48.97 | 54.62 ▲3.00 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▼0.07 | 98.74 ▲1.88 | 42.55 ▼0.46 |
DayCounts /wp-admin/options-general.php?page=uptodate | 803 | 2.02 | 29.95 | 33.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=uptodate
- > Notice in wp-content/plugins/daycounts-up-to-date/admin/partials/uptodate-admin-display.php+28
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 124
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 125
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 123
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 122
- > PHP Warning
include_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 122
- > PHP Warning
include_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 126
- > PHP Warning
include_once(ABSPATHwp-admin/includes/misc.php): failed to open stream: No such file or directory in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 123
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 122
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 124
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/daycounts-up-to-date/public/class-uptodate-extensions.php on line 126
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: plugins, up to date, updates
daycounts-up-to-date/uptodate.php 77% from 13 tests
The primary PHP file in "DayCounts Up To Date" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daycounts-up-to-date.php" instead of "uptodate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin324 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 146 | 440 | 324 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 80.65% |
▷ Protected methods | 2 | 6.45% |
▷ Private methods | 4 | 12.90% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected