84% do-shortcodes-for-rank-math-seo

Code Review | Do Shortcodes for Rank Math SEO

WordPress plugin Do Shortcodes for Rank Math SEO scored84%from 54 tests.

About plugin

  • Plugin page: do-shortcodes-for...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Jul 20, 2023
  • Number of updates: 12
  • Update frequency: every 99.0 days
  • Top authors: denra (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /3,615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.12ms] Passed 4 tests

Server-side resources used by Do Shortcodes for Rank Math SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2044.44 ▼2.81
Dashboard /wp-admin3.51 ▲0.2163.00 ▲9.36
Posts /wp-admin/edit.php3.62 ▲0.2750.12 ▼0.46
Add New Post /wp-admin/post-new.php6.08 ▲0.2097.25 ▼2.30
Media Library /wp-admin/upload.php3.43 ▲0.2042.53 ▲5.09
Do Shortcodes for Rank Math SEO /wp-admin/admin.php?page=denra-plugin-do-shortcodes-for-rank-math-seo3.4037.18
Home /wp-admin/admin.php?page=denra-plugins3.4034.92

Server storage [IO: ▲0.05MB] [DB: ▲0.31MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Do Shortcodes for Rank Math SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15214.37 ▼0.162.01 ▲0.2644.12 ▼2.55
Dashboard /wp-admin2,322 ▲1455.66 ▲0.12102.53 ▲10.1442.23 ▲1.20
Posts /wp-admin/edit.php2,224 ▲1242.00 ▲0.0335.88 ▼5.1632.77 ▼11.08
Add New Post /wp-admin/post-new.php1,550 ▲1523.08 ▲4.96677.86 ▲27.6658.44 ▼8.12
Media Library /wp-admin/upload.php1,524 ▲1274.16 ▼0.0398.64 ▼0.1046.70 ▲0.21
Do Shortcodes for Rank Math SEO /wp-admin/admin.php?page=denra-plugin-do-shortcodes-for-rank-math-seo1,0272.1424.2435.16
Home /wp-admin/admin.php?page=denra-plugins9352.0123.0430.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 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
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Denra\\Plugins\\BasicExtra' not found in wp-content/plugins/do-shortcodes-for-rank-math-seo/denra-plugins/classes/Plugin.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Denra\\Plugins\\Basic' not found in wp-content/plugins/do-shortcodes-for-rank-math-seo/denra-plugins/classes/BasicExtra.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Denra\\Plugins\\BasicExtra' not found in wp-content/plugins/do-shortcodes-for-rank-math-seo/denra-plugins/classes/Framework.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Denra\\Plugins\\Plugin' not found in wp-content/plugins/do-shortcodes-for-rank-math-seo/plugin/classes/DoShortcodesRankMathSEO.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Denra\\Plugins\\PluginHooks' not found in wp-content/plugins/do-shortcodes-for-rank-math-seo/plugin/classes/DoShortcodesRankMathSEOHooks.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

do-shortcodes-for-rank-math-seo/do-shortcodes-for-rank-math-seo.php 92% from 13 tests

The entry point to "Do Shortcodes for Rank Math SEO" version 1.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin610 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9232156540
CSS115970

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.25
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods36
▷ Static methods1130.56%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected