84% one-meta-description

Code Review | One Meta Description

WordPress plugin One Meta Description scored84%from 54 tests.

About plugin

  • Plugin page: one-meta-description
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 23, 2011
  • Latest release: Jan 10, 2019
  • Number of updates: 25
  • Update frequency: every 108.2 days
  • Top authors: abyrafa (68%)byoozz (36%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,086 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.23ms] Passed 4 tests

A check of server-side resources used by One Meta Description
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.33 ▼2.43
Dashboard /wp-admin3.32 ▲0.0247.24 ▼9.11
Posts /wp-admin/edit.php3.37 ▲0.0250.54 ▼1.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.14 ▲3.97
Media Library /wp-admin/upload.php3.24 ▲0.0237.26 ▼4.05
SEO Meta Description /wp-admin/options-general.php?page=one-meta-description3.2137.02

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
one_meta_description

Browser metrics Passed 4 tests

An overview of browser requirements for One Meta Description
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲814.72 ▲0.161.99 ▼0.1041.37 ▼7.25
Dashboard /wp-admin2,196 ▲165.56 ▼0.0382.33 ▼11.9640.82 ▼2.91
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0540.22 ▲1.9637.23 ▲1.82
Add New Post /wp-admin/post-new.php1,538 ▲1218.12 ▼5.00630.78 ▼55.1373.85 ▲19.69
Media Library /wp-admin/upload.php1,407 ▲134.15 ▼0.1097.03 ▼33.9744.22 ▼6.33
SEO Meta Description /wp-admin/options-general.php?page=one-meta-description8622.1826.7628.35

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: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • one_meta_description
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/one-meta-description/one-meta-description.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: seo, serp, meta, search engine, description

one-meta-description/one-meta-description.php 92% from 13 tests

The main PHP script in "One Meta Description" version 1.3.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 223 characters long)

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
Everything looks great! No dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1112082

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin