83% rb-keyword-research

Code Review | RB Keyword Research Plugin

WordPress plugin RB Keyword Research Plugin scored83%from 54 tests.

About plugin

  • Plugin page: rb-keyword-research
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Nov 15, 2014
  • Latest release: Jul 9, 2022
  • Number of updates: 25
  • Update frequency: every 111.8 days
  • Top authors: DrKnown (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /10,884 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.59ms] Passed 4 tests

Server-side resources used by RB Keyword Research Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.78 ▲8.65
Dashboard /wp-admin3.32 ▲0.0151.67 ▲2.57
Posts /wp-admin/edit.php3.37 ▲0.0149.02 ▼1.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.91 ▼7.12
Media Library /wp-admin/upload.php3.24 ▲0.0138.18 ▲3.83

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/rb-keyword-research/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

RB Keyword Research Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8813.58 ▼0.811.79 ▲0.0645.51 ▲3.52
Dashboard /wp-admin2,255 ▲545.18 ▲0.23114.40 ▲9.2042.87 ▼1.21
Posts /wp-admin/edit.php2,139 ▲392.55 ▲0.5633.66 ▼2.0931.97 ▼0.91
Add New Post /wp-admin/post-new.php1,557 ▲2623.27 ▼0.26679.47 ▲15.0636.50 ▼14.42
Media Library /wp-admin/upload.php1,434 ▲344.48 ▲0.1598.36 ▼5.4146.62 ▲3.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-keyword-research/wprb_keyword_main.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rb-keyword-research/rbhelpers.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-keyword-research/rbkeywords.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can look at the official readme.txt

rb-keyword-research/rbkeywords.php 85% from 13 tests

The main file in "RB Keyword Research Plugin" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rb-keyword-research.php" instead of "rbkeywords.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected514 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22312335
PHP35917164
CSS12015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code1.57
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
glass.png0.39KB0.57KB0.00%