68% seo-by-rank-math

Code Review | Rank Math SEO – Best SEO Plugin For WordPress To Increase Your SEO Traffic

WordPress plugin Rank Math SEO – Best SEO Plugin For WordPress To Increase Your SEO Traffic scored 68% from 54 tests.

About plugin

  • Plugin page: seo-by-rank-math
  • Plugin version: 1.0.85.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 5.9.2
  • First release: Nov 19, 2018
  • Latest release: Mar 23, 2022
  • Number of updates: 377
  • Update frequency: every 3.5 days
  • Top authors: rankmath (85.94%)MyThemeShop (14.32%)

Code review

54 tests

User reviews

4341 reviews

Install metrics

1,000,000+ active / 29,985,467 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲2.35MB] [CPU: ▼286.58ms] Passed 4 tests

Analyzing server-side resources used by Rank Math SEO – Best SEO Plugin For WordPress To Increase Your SEO Traffic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.88 ▲2.3670.38 ▲18.44
Dashboard /wp-admin5.79 ▲2.3851.85 ▲17.13
Posts /wp-admin/edit.php6.02 ▲2.3855.35 ▲18.16
Add New Post /wp-admin/post-new.php9.26 ▲2.29116.37 ▼1,190.92
Media Library /wp-admin/upload.php5.67 ▲2.3738.17 ▲9.31
Scheduled Actions /wp-admin/tools.php?page=action-scheduler5.9250.73

Server storage [IO: ▲6.84MB] [DB: ▲0.02MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 781 new files
Database: 6 new tables, 15 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_claims
wp_actionscheduler_logs
wp_rank_math_internal_meta
wp_actionscheduler_groups
wp_rank_math_internal_links
New WordPress options
schema-ActionScheduler_LoggerSchema
rank_math_install_date
rank_math_known_post_types
rank-math-options-titles
rank-math-options-sitemap
action_scheduler_lock_async-request-runner
action_scheduler_hybrid_store_demarkation
schema-ActionScheduler_StoreSchema
rank_math_flush_rewrite
rank_math_db_version
...

Browser metrics Passed 4 tests

An overview of browser requirements for Rank Math SEO – Best SEO Plugin For WordPress To Increase Your SEO Traffic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲5815.85 ▼0.185.86 ▼0.132.20 ▼0.33
Dashboard /wp-admin2,921 ▲606.15 ▼0.02117.90 ▼27.38157.11 ▼2.68
Posts /wp-admin/edit.php2,717 ▲293.24 ▲0.0062.73 ▼2.18136.12 ▼5.90
Add New Post /wp-admin/post-new.php1,683 ▲1521.70 ▲3.57441.74 ▲36.81158.82 ▲4.61
Media Library /wp-admin/upload.php1,724 ▲295.52 ▲0.00143.92 ▲7.53194.58 ▲4.59
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,5832.5755.06113.76

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 6 tables
    • wp_actionscheduler_claims
    • wp_rank_math_internal_meta
    • wp_actionscheduler_logs
    • wp_actionscheduler_groups
    • wp_actionscheduler_actions
    • wp_rank_math_internal_links
  • The uninstall procedure has failed, leaving 15 options in the database
    • rank_math_known_post_types
    • rank-math-options-titles
    • schema-ActionScheduler_StoreSchema
    • rank_math_db_version
    • rank_math_notifications
    • action_scheduler_hybrid_store_demarkation
    • rank-math-options-general
    • rank-math-options-sitemap
    • rank_math_modules
    • rank-math-options-instant-indexing
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-by-rank-math/assets/vendor/schema/schema-map.php
  • 87× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/seo-by-rank-math/vendor/a5hleyrich/wp-background-processing/wp-background-processing.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: sitemap, wordpress seo, redirection, google search console, seo...

seo-by-rank-math/rank-math.php 77% from 13 tests

"Rank Math SEO – Best SEO Plugin For WordPress To Increase Your SEO Traffic" version 1.0.85.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-by-rank-math.php" instead of "rank-math.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected65,203 lines of code in 712 files:
LanguageFilesBlank linesComment linesLines of code
PHP60214,86934,95759,768
CSS341856952,839
JavaScript512232391,058
Sass113015947
JSON400277
XML2110177
SVG600108
Markdown14018
make12011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity17.42
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces47
Interfaces12
Traits23
Classes424
▷ Abstract classes307.08%
▷ Concrete classes39492.92%
▷ Final classes10.25%
Methods3,899
▷ Static methods59515.26%
▷ Public methods2,71469.61%
▷ Protected methods3779.67%
▷ Private methods80820.72%
Functions152
▷ Named functions11776.97%
▷ Anonymous functions3523.03%
Constants153
▷ Global constants74.58%
▷ Class constants14695.42%
▷ Public constants146100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/modules/analytics/assets/img/report-logo.png6.42KB6.97KB0.00%
includes/modules/analytics/assets/img/report-icon-external.png2.47KB0.60KB▼ 75.81%
assets/admin/img/score-100.png16.74KB9.48KB▼ 43.38%
assets/admin/img/progressred.png0.10KB0.10KB0.00%
assets/admin/img/icon-play.png4.58KB4.29KB▼ 6.38%