84% page-title-description-open-graph-updater

Code Review | Page Title, Description & Open Graph Updater

WordPress plugin Page Title, Description & Open Graph Updater scored84%from 54 tests.

About plugin

  • Plugin page: page-title-descri...
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: Dec 9, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: dienodigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.33ms] Passed 4 tests

Analyzing server-side resources used by Page Title, Description & Open Graph Updater
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0123.16 ▼16.23
Dashboard /wp-admin3.40 ▲0.1045.65 ▼1.55
Posts /wp-admin/edit.php3.51 ▲0.1646.91 ▲3.46
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.57 ▼15.86
Media Library /wp-admin/upload.php3.30 ▲0.0734.15 ▲0.33

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Page Title, Description & Open Graph Updater: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲19215.29 ▲0.701.91 ▼0.2639.71 ▼3.52
Dashboard /wp-admin2,366 ▲1786.98 ▲2.08126.88 ▲12.2198.37 ▲54.37
Posts /wp-admin/edit.php2,289 ▲2004.05 ▲2.0472.75 ▲38.2671.28 ▲39.23
Add New Post /wp-admin/post-new.php1,536 ▲1623.57 ▲0.44554.81 ▼31.6028.27 ▼26.24
Media Library /wp-admin/upload.php1,488 ▲1064.67 ▲0.4686.57 ▼8.7772.72 ▲31.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-title-description-open-graph-updater/Classes/setting.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-title-description-open-graph-updater/Classes/dieno_quick_edits_functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-title-description-open-graph-updater/Classes/setting.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 to be fixed: The official readme.txt is a good inspiration

page-title-description-open-graph-updater/page_title_description_quick_edit.php 92% from 13 tests

The main PHP script in "Page Title, Description & Open Graph Updater" version 1.02 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("page-title-description-open-graph-updater.php" instead of "page_title_description_quick_edit.php")

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
Good job! No executable or dangerous file extensions detected937 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4356382
SVG100288
PHP3122200
CSS30667

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/edit_icon.png1.02KB1.18KB0.00%
assets/images/dieno-digital-web.png26.05KB12.89KB▼ 50.50%