72% serp-rank

Code Review | Keyword Rank Tracker

WordPress plugin Keyword Rank Tracker scored 72% from 54 tests.

About plugin

  • Plugin page: serp-rank
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 10, 2020
  • Latest release: Nov 22, 2022
  • Number of updates: 24
  • Update frequency: every 43.6 days
  • Top authors: rolomak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,872 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
Installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▲2.61ms] Passed 4 tests

Server-side resources used by Keyword Rank Tracker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4544.28 ▲1.28
Dashboard /wp-admin3.77 ▲0.4656.42 ▲2.46
Posts /wp-admin/edit.php3.82 ▲0.4659.09 ▲7.05
Add New Post /wp-admin/post-new.php6.30 ▲0.4295.50 ▲3.96
Media Library /wp-admin/upload.php3.63 ▲0.4039.60 ▲2.75
About /wp-admin/admin.php?page=keyword-rank-tracker_about3.6240.15
Settings /wp-admin/admin.php?page=keyword-rank-tracker_settings3.5940.30
Keyword List /wp-admin/admin.php?page=keyword-rank-tracker3.6537.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 424 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Keyword Rank Tracker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲13913.92 ▼0.877.94 ▲5.9340.64 ▼2.41
Dashboard /wp-admin2,237 ▲285.86 ▼0.0599.61 ▲4.0048.35 ▲10.15
Posts /wp-admin/edit.php2,120 ▲312.01 ▼0.0337.93 ▲1.5333.97 ▼3.26
Add New Post /wp-admin/post-new.php1,540 ▲323.69 ▲0.52677.33 ▲75.7763.42 ▼1.38
Media Library /wp-admin/upload.php1,422 ▲344.20 ▼0.05101.69 ▼2.0744.76 ▼0.27
About /wp-admin/admin.php?page=keyword-rank-tracker_about8442.0224.8528.68
Settings /wp-admin/admin.php?page=keyword-rank-tracker_settings8892.0624.0333.99
Keyword List /wp-admin/admin.php?page=keyword-rank-tracker1,0542.2025.6329.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=keyword-rank-tracker
    • > Notice in wp-content/plugins/serp-rank/includes/class-serp-rank-keywords-list-table.php+94
    Undefined index: exact

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/serp-rank/public/partials/serp-rank-public-display.php
  • 187× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/serp-rank/includes/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/serp-rank/includes/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:54
    • > PHP Fatal error
      Uncaught Exception: This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation. in wp-content/plugins/serp-rank/includes/vendor/google/apiclient/src/Google/autoload.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/serp-rank/includes/vendor/google/auth/src/FetchAuthTokenCache.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/serp-rank/includes/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/serp-rank/includes/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: google, seo

serp-rank/serp-rank.php Passed 13 tests

The main PHP file in "Keyword Rank Tracker" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
Keyword Rank Tracker

Code Analysis 97% from 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 plugin48,229 lines of code in 393 files:
LanguageFilesBlank linesComment linesLines of code
PHP3278,16326,14641,622
Markdown421,82905,206
JSON15001,287
YAML25037
JavaScript235425
CSS221822
XML10011
Dockerfile18010
make1409

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.47
▷ Minimum class complexity1.00
▷ Maximum class complexity631.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces35
Interfaces31
Traits9
Classes268
▷ Abstract classes103.73%
▷ Concrete classes25896.27%
▷ Final classes135.04%
Methods2,424
▷ Static methods1455.98%
▷ Public methods2,00782.80%
▷ Protected methods1717.05%
▷ Private methods24610.15%
Functions181
▷ Named functions6234.25%
▷ Anonymous functions11965.75%
Constants348
▷ Global constants246.90%
▷ Class constants32493.10%
▷ Public constants30594.14%

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