84% meta-description

Code Review | Meta Description

WordPress plugin Meta Description scored84%from 54 tests.

About plugin

  • Plugin page: meta-description
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 22, 2012
  • Latest release: Feb 9, 2018
  • Number of updates: 15
  • Update frequency: every 131.1 days
  • Top authors: bitacre (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /18,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼21.57ms] Passed 4 tests

Analyzing server-side resources used by Meta Description
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.40 ▼2.75
Dashboard /wp-admin3.32 ▲0.0151.88 ▼3.22
Posts /wp-admin/edit.php3.37 ▲0.0153.04 ▲1.66
Add New Post /wp-admin/post-new.php3.11 ▼2.7937.91 ▼74.86
Media Library /wp-admin/upload.php3.24 ▲0.0136.92 ▼5.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Meta Description
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.101.81 ▼0.2345.37 ▼2.68
Dashboard /wp-admin2,195 ▲185.63 ▲0.0585.37 ▼14.1140.05 ▼4.97
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0341.34 ▲6.5335.40 ▼1.09
Add New Post /wp-admin/post-new.php1,514 ▼1220.92 ▼2.11626.56 ▼40.9750.02 ▼3.64
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.04102.07 ▼14.2043.43 ▼3.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meta-description/meta-description.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (The meta description post meta box.)
The official readme.txt is a good inspiration

meta-description/meta-description.php Passed 13 tests

"Meta Description" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
63 characters long description:
Adds a meta box for inputting post/page HTML meta descriptions.

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
Good job! No executable or dangerous file extensions detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101733

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png1.80KB1.73KB▼ 3.80%