Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.67ms] Passed 4 tests
This is a short check of server-side resources used by DX Out of Date
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.15 ▲0.24 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.38 ▼4.91 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 55.36 ▲5.44 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 97.58 ▼3.71 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.37 ▲1.71 |
Out of Date /wp-admin/options-general.php?page=dx-out-of-date | 3.26 | 35.42 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by DX Out of Date
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.60 ▲0.26 | 1.66 ▼0.34 | 47.73 ▲3.76 |
Dashboard /wp-admin | 2,217 ▲37 | 5.86 ▲0.19 | 93.20 ▲5.17 | 39.96 ▼2.14 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.26 ▲0.24 | 38.54 ▼4.23 | 32.74 ▼11.50 |
Add New Post /wp-admin/post-new.php | 6,242 ▲4,714 | 26.14 ▲2.94 | 928.90 ▲236.95 | 38.83 ▼11.41 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.33 ▲0.23 | 109.59 ▲0.28 | 47.94 ▼0.04 |
Out of Date /wp-admin/options-general.php?page=dx-out-of-date | 1,424 | 2.76 | 51.88 | 25.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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 no errors were found, this is by no means 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dx-out-of-date/dx-out-of-date.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dx-out-of-date/dx-ood-admin.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: label, message, out of date, outdated, old...
dx-out-of-date/dx-out-of-date.php Passed 13 tests
Analyzing the main PHP file in "DX Out of Date" version 2.0
98 characters long description:
Display a notice above each post of yours that has been published a while ago and may be outdated.
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
No dangerous file extensions were detected481 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 109 | 230 | 460 |
CSS | 2 | 0 | 0 | 17 |
JavaScript | 1 | 0 | 1 | 4 |
PHP code Passed 2 tests
Analyzing 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.27 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 51.58KB | 23.94KB | ▼ 53.59% |
assets/screenshot-2.png | 67.28KB | 32.85KB | ▼ 51.17% |