78% extend-rank-math

Code Review | Extend Rank Math

WordPress plugin Extend Rank Math scored78%from 54 tests.

About plugin

  • Plugin page: extend-rank-math
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2021
  • Latest release: Jul 12, 2021
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: ikamal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.18MB] [CPU: ▲0.91ms] Passed 4 tests

Analyzing server-side resources used by Extend Rank Math
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1546.22 ▲1.12
Dashboard /wp-admin3.55 ▲0.2557.07 ▼1.41
Posts /wp-admin/edit.php3.60 ▲0.2554.90 ▲2.81
Add New Post /wp-admin/post-new.php6.07 ▲0.1897.62 ▲1.11
Media Library /wp-admin/upload.php3.39 ▲0.1642.26 ▲6.30
Extend Rank Math /wp-admin/options-general.php?page=extend_rank_math3.3839.41

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
erm_basics
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Extend Rank Math: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,070 ▲29915.23 ▲0.985.40 ▲3.5044.06 ▲3.06
Dashboard /wp-admin2,368 ▲1806.61 ▲1.76124.49 ▲14.8437.13 ▼3.38
Posts /wp-admin/edit.php2,277 ▲1883.64 ▲1.6261.86 ▲19.4837.46 ▼1.75
Add New Post /wp-admin/post-new.php1,533 ▼023.70 ▲0.81582.65 ▼95.6036.57 ▼16.11
Media Library /wp-admin/upload.php1,416 ▲284.22 ▼0.1984.95 ▼24.9440.53 ▼5.69
Extend Rank Math /wp-admin/options-general.php?page=extend_rank_math1,0383.4445.5225.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • erm_basics
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/extend-rank-math/admin/partials/rankmath-helper-admin-display.php
    • > /wp-content/plugins/extend-rank-math/public/partials/rankmath-helper-public-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=extend_rank_math
    • > Network (severe)
    wp-content/plugins/extend-rank-math/admin/css/extend-rank-math-admin.css?ver=1.0.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=extend_rank_math
    • > Network (severe)
    wp-content/plugins/extend-rank-math/admin/js/extend-rank-math-admin.js?ver=1.0.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Settings preview) image required
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Extend Rank Math" version 1.0.1
50 characters long description:
Extend Rank Math is a helper plugin for Rank Math.

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 detected666 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14257783660
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.22
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods64
▷ Static methods23.12%
▷ Public methods5992.19%
▷ Protected methods00.00%
▷ Private methods57.81%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin