84% seo-meta-description

Code Review | SEO Meta Description

WordPress plugin SEO Meta Description scored84%from 54 tests.

About plugin

  • Plugin page: seo-meta-description
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Oct 16, 2011
  • Latest release: Nov 3, 2016
  • Number of updates: 9
  • Update frequency: every 205.0 days
  • Top authors: dejan.batanjac (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by SEO Meta Description
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.96 ▼3.29
Dashboard /wp-admin3.32 ▲0.0251.04 ▼0.02
Posts /wp-admin/edit.php3.37 ▲0.0252.27 ▲2.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.27 ▼16.80
Media Library /wp-admin/upload.php3.25 ▲0.0235.56 ▼2.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Meta Description
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.74 ▼0.221.58 ▼0.2242.04 ▲0.46
Dashboard /wp-admin2,221 ▲154.85 ▼0.02100.96 ▲0.5939.79 ▲0.32
Posts /wp-admin/edit.php2,106 ▲32.00 ▲0.0151.37 ▲12.5845.99 ▲13.66
Add New Post /wp-admin/post-new.php6,243 ▲4,70325.88 ▲7.53916.37 ▲283.0965.03 ▲5.39
Media Library /wp-admin/upload.php1,400 ▼04.31 ▲0.1198.37 ▼10.9546.85 ▼6.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/seo-meta-description/seo-meta-description.php:41

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: seo, description, meta

seo-meta-description/seo-meta-description.php 85% from 13 tests

"SEO Meta Description" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

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
Success! There were no dangerous files found in this plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2347093

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin