74% wp-keyword-monitor

Code Review | WP Keyword Monitor

WordPress plugin WP Keyword Monitor scored74%from 54 tests.

About plugin

  • Plugin page: wp-keyword-monitor
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.1-4.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: Mar 30, 2017
  • Number of updates: 22
  • Update frequency: every 1.4 days
  • Top authors: filme-blog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,892 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.68ms] Passed 4 tests

Analyzing server-side resources used by WP Keyword Monitor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.35 ▲0.19
Dashboard /wp-admin3.34 ▼0.0046.01 ▼14.17
Posts /wp-admin/edit.php3.40 ▲0.0447.36 ▼1.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.30 ▼22.87
Media Library /wp-admin/upload.php3.27 ▲0.0437.07 ▲3.57
KeyMon /wp-admin/admin.php?page=wp-keyword-monitor-statistics3.2333.48
Settings /wp-admin/admin.php?page=wp-keyword-monitor-settings3.2333.21

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables
wp_wp_key_mon_keywords
wp_wp_key_mon_keyword_results
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Keyword Monitor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8413.57 ▼0.804.94 ▲3.3244.03 ▲1.72
Dashboard /wp-admin2,229 ▲495.29 ▼0.4098.52 ▲14.9942.56 ▲0.34
Posts /wp-admin/edit.php2,135 ▲352.50 ▲0.4738.87 ▲2.9733.37 ▲0.89
Add New Post /wp-admin/post-new.php1,552 ▲2624.39 ▲1.34668.10 ▼20.8036.25 ▼16.50
Media Library /wp-admin/upload.php1,434 ▲374.81 ▲0.65104.98 ▲3.4947.22 ▲1.66
KeyMon /wp-admin/admin.php?page=wp-keyword-monitor-statistics9082.6547.8125.47
Settings /wp-admin/admin.php?page=wp-keyword-monitor-settings9792.4724.9627.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_wp_key_mon_keyword_results
    • wp_wp_key_mon_keywords
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-keyword-monitor/wp-keyword-monitor.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
Attributes that require attention: The official readme.txt might help

wp-keyword-monitor/wp-keyword-monitor.php Passed 13 tests

The main file in "WP Keyword Monitor" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
WP Keyword Monitor (KeyMon) is a powerful SEO Tool to track your keyword rankings in google serps.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,129 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP919093934
PO File149101118
Markdown122050
CSS12021
JavaScript1096

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.62
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods37.14%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin