89% outdated-post-label

Code Review | Outdated Post Label

WordPress plugin Outdated Post Label scored89%from 54 tests.

About plugin

  • Plugin page: outdated-post-label
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2023
  • Latest release: Jun 22, 2023
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: saudrazzak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /68 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.08MB] [CPU: ▼13.67ms] Passed 4 tests

A check of server-side resources used by Outdated Post Label
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.21 ▼5.09
Dashboard /wp-admin3.06 ▼0.2427.73 ▼29.70
Posts /wp-admin/edit.php3.36 ▲0.0151.95 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.30 ▼8.36
Media Library /wp-admin/upload.php3.13 ▼0.1024.27 ▼11.54

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Outdated Post Label
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5613.31 ▼1.344.24 ▲2.4233.61 ▼10.17
Dashboard /wp-admin2,223 ▲205.79 ▲0.76102.58 ▼15.8145.88 ▼1.02
Posts /wp-admin/edit.php2,111 ▲112.02 ▲0.0235.83 ▼6.4636.44 ▲2.74
Add New Post /wp-admin/post-new.php1,554 ▲2218.17 ▼4.93604.05 ▼61.8456.21 ▲5.50
Media Library /wp-admin/upload.php1,396 ▼14.13 ▼0.07102.13 ▼3.8149.61 ▲6.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (This is the Screenshot one.) image required
You can look at the official readme.txt

outdated-post-label/Outdated Post Label.php 85% from 13 tests

The principal PHP file in "Outdated Post Label" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("outdated-post-label.php" instead of "Outdated Post Label.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP131432
CSS12012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin