84% meta-box-yoast-seo

Code Review | Meta Box for Yoast SEO

WordPress plugin Meta Box for Yoast SEO scored84%from 54 tests.

About plugin

  • Plugin page: meta-box-yoast-seo
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Aug 25, 2021
  • Number of updates: 32
  • Update frequency: every 68.7 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /23,812 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.36ms] Passed 4 tests

Server-side resources used by Meta Box for Yoast SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.51 ▼2.66
Dashboard /wp-admin3.32 ▼0.0343.41 ▼14.34
Posts /wp-admin/edit.php3.37 ▲0.0145.05 ▼4.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.34 ▼12.33
Media Library /wp-admin/upload.php3.24 ▲0.0134.55 ▲0.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Meta Box for Yoast SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.031.68 ▼0.1741.79 ▼4.47
Dashboard /wp-admin2,209 ▲214.87 ▼1.04114.03 ▲6.1741.90 ▲1.95
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0348.77 ▲6.9036.03 ▼1.92
Add New Post /wp-admin/post-new.php1,533 ▼023.35 ▲0.18613.22 ▼85.0751.16 ▼6.78
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0296.68 ▼9.4442.00 ▼5.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 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-box-yoast-seo/mb-yoast-seo.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

meta-box-yoast-seo/mb-yoast-seo.php 92% from 13 tests

The main PHP script in "Meta Box for Yoast SEO" version 1.3.9 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("meta-box-yoast-seo.php" instead of "mb-yoast-seo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin128 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1163479
PHP2124149

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods125.00%
▷ Protected methods375.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin