99% meta-description-made-easy

Code Review | Meta Description Made Easy

WordPress plugin Meta Description Made Easy scored 99% from 54 tests.

About plugin

  • Plugin page: meta-description-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7+
  • WordPress version: 5.8.1
  • First release: Jul 28, 2018
  • Latest release: Jul 28, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: doomansoltani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 343 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼141.66ms] Passed 4 tests

An overview of server-side resources used by Meta Description Made Easy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0439.06 ▲6.73
Dashboard /wp-admin3.11 ▲0.0643.86 ▼2.31
Posts /wp-admin/edit.php3.16 ▲0.0546.61 ▲0.47
Add New Post /wp-admin/post-new.php5.47 ▲0.0487.29 ▼557.90
Media Library /wp-admin/upload.php3.05 ▲0.0526.91 ▼6.89
Meta Description /wp-admin/options-general.php?page=MEDME3.0229.44

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Meta Description Made Easy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲7115.89 ▲0.2710.29 ▲1.9347.95 ▼5.99
Dashboard /wp-admin2,978 ▲445.88 ▼0.03135.81 ▼8.22114.34 ▼11.91
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0060.83 ▼0.3185.06 ▼6.95
Add New Post /wp-admin/post-new.php1,675 ▲17518.84 ▲0.03381.29 ▲20.31102.23 ▼7.69
Media Library /wp-admin/upload.php1,812 ▲25.00 ▼0.05137.10 ▼12.55111.72 ▼8.73
Meta Description /wp-admin/options-general.php?page=MEDME1,1282.0957.7788.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

meta-description-made-easy/medme.php 77% from 13 tests

The main PHP file in "Meta Description Made Easy" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("meta-description-made-easy.php" instead of "medme.php")

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 detected147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22730147

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin