74% clean-meta-descriptions

Code Review | Clean Meta Descriptions

WordPress plugin Clean Meta Descriptions scored74%from 54 tests.

About plugin

  • Plugin page: clean-meta-descri...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6.39+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Apr 5, 2023
  • Number of updates: 7
  • Update frequency: every 20.7 days
  • Top authors: matthewsudekum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /200 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.89ms] Passed 4 tests

An overview of server-side resources used by Clean Meta Descriptions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.05 ▼36.66
Dashboard /wp-admin2.09 ▼1.216.98 ▼44.24
Posts /wp-admin/edit.php2.09 ▼1.267.47 ▼38.13
Add New Post /wp-admin/post-new.php2.09 ▼3.796.67 ▼92.51
Media Library /wp-admin/upload.php2.09 ▼1.146.08 ▼28.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Clean Meta Descriptions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲18613.92 ▼0.499.20 ▲7.3842.57 ▼2.94
Dashboard /wp-admin2,229 ▲415.90 ▲0.93105.32 ▼17.3937.70 ▼9.23
Posts /wp-admin/edit.php2,109 ▲202.01 ▲0.0036.57 ▼3.6836.52 ▲0.43
Add New Post /wp-admin/post-new.php1,372 ▼15716.65 ▼1.83610.28 ▼59.7753.08 ▼4.35
Media Library /wp-admin/upload.php1,411 ▲204.15 ▼0.0496.52 ▼7.6439.67 ▼4.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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)
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/clean-meta-descriptions/clean-meta-descriptions.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (This is a screenshot of the plugin page right after clicking it in the side admin bar.) image missing
Please take inspiration from this readme.txt

clean-meta-descriptions/clean-meta-descriptions.php Passed 13 tests

The entry point to "Clean Meta Descriptions" version 1.1.0 is a PHP file that has certain tags in its header comment area
105 characters long description:
This plugin allows you to remove shortcodes that may appear in the meta descriptions of your pages/posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected143 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11515142
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
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
PNG images were not found in this plugin