84% dx-out-of-date

Code Review | DX Out of Date

WordPress plugin DX Out of Date scored84%from 54 tests.

About plugin

  • Plugin page: dx-out-of-date
  • Plugin version: 2.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Jan 2, 2014
  • Latest release: May 25, 2022
  • Number of updates: 13
  • Update frequency: every 235.8 days
  • Top authors: devrix (84.62%)nofearinc (23.08%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /2,009 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.15 ▲0.24
Dashboard /wp-admin3.34 ▲0.0448.38 ▼4.91
Posts /wp-admin/edit.php3.39 ▲0.0355.36 ▲5.44
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.58 ▼3.71
Media Library /wp-admin/upload.php3.26 ▲0.0338.37 ▲1.71
Out of Date /wp-admin/options-general.php?page=dx-out-of-date3.2635.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.60 ▲0.261.66 ▼0.3447.73 ▲3.76
Dashboard /wp-admin2,217 ▲375.86 ▲0.1993.20 ▲5.1739.96 ▼2.14
Posts /wp-admin/edit.php2,127 ▲272.26 ▲0.2438.54 ▼4.2332.74 ▼11.50
Add New Post /wp-admin/post-new.php6,242 ▲4,71426.14 ▲2.94928.90 ▲236.9538.83 ▼11.41
Media Library /wp-admin/upload.php1,425 ▲254.33 ▲0.23109.59 ▲0.2847.94 ▼0.04
Out of Date /wp-admin/options-general.php?page=dx-out-of-date1,4242.7651.8825.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP4109230460
CSS20017
JavaScript1014

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 code0.27
Average class complexity16.00
▷ Minimum class complexity7.00
▷ Maximum class complexity22.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods410.53%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/screenshot-1.png51.58KB23.94KB▼ 53.59%
assets/screenshot-2.png67.28KB32.85KB▼ 51.17%