84% mb-rank-math

Code Review | MB Rank Math

WordPress plugin MB Rank Math scored84%from 54 tests.

About plugin

  • Plugin page: mb-rank-math
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Aug 20, 2021
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Analyzing server-side resources used by MB Rank Math
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.63 ▼9.81
Dashboard /wp-admin3.31 ▲0.0143.38 ▼5.87
Posts /wp-admin/edit.php3.36 ▲0.0048.81 ▲2.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.82 ▼1.70
Media Library /wp-admin/upload.php3.23 ▲0.0032.09 ▼0.14

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

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

Browser metrics Passed 4 tests

MB Rank Math: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.55 ▼0.821.77 ▼0.0841.70 ▼2.76
Dashboard /wp-admin2,206 ▲185.90 ▲1.0799.35 ▼15.5937.81 ▼5.70
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0040.70 ▲7.0935.85 ▼0.36
Add New Post /wp-admin/post-new.php1,537 ▲918.27 ▲0.10619.78 ▼26.7350.32 ▼2.72
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0497.80 ▲0.3440.37 ▼2.42

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mb-rank-math/mb-rank-math.php:12

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 Passed 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
9 plugin tags: custom-fields, meta-box, custom-field, content-analysis, rank-math...

mb-rank-math/mb-rank-math.php Passed 13 tests

"MB Rank Math" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Add content of Meta Box custom fields to Rank Math content analysis.

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 detected126 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1192974
PHP2122352

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions1
▷ Named functions1100.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