89% empty-title-category-checker

Code Review | Empty Title & Category Checker

WordPress plugin Empty Title & Category Checker scored 89% from 54 tests.

About plugin

  • Plugin page: empty-title-categ...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2013
  • Latest release: Apr 24, 2013
  • Number of updates: 6
  • Update frequency: every 7.5 days
  • Top authors: dmf_tuva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.46ms] Passed 4 tests

A check of server-side resources used by Empty Title & Category Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.47 ▼4.76
Dashboard /wp-admin3.32 ▲0.0247.81 ▲1.44
Posts /wp-admin/edit.php3.37 ▲0.0244.62 ▼3.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0480.57 ▼20.14
Media Library /wp-admin/upload.php3.24 ▲0.0136.21 ▼1.02

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Empty Title & Category Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.30 ▼1.261.72 ▼0.1638.47 ▼16.46
Dashboard /wp-admin2,208 ▲195.85 ▲0.89104.81 ▼4.5339.69 ▼2.89
Posts /wp-admin/edit.php2,097 ▲112.08 ▲0.0538.89 ▼2.7635.55 ▼1.84
Add New Post /wp-admin/post-new.php1,536 ▲823.43 ▲5.15692.36 ▲76.2555.23 ▲3.75
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0397.24 ▼0.3846.11 ▲1.46

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (As you see messages showing when title or category is empty) image missing
Please take inspiration from this readme.txt

empty-title-category-checker/ech.php 85% from 13 tests

The principal PHP file in "Empty Title & Category Checker" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("empty-title-category-checker.php" instead of "ech.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected132 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202965
JavaScript19239
PO File14528

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin