94% keyword-difficulty-tool

Code Review | Keyword Difficulty Tool

WordPress plugin Keyword Difficulty Tool scored 94% from 54 tests.

About plugin

  • Plugin page: keyword-difficult...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 5.8.1
  • First release: Dec 7, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: metricbuzz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 862 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Keyword Difficulty Tool
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.57 ▼0.97
Dashboard /wp-admin3.08 ▲0.0358.25 ▲8.07
Posts /wp-admin/edit.php3.13 ▲0.0349.40 ▲1.00
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.07 ▼566.21
Media Library /wp-admin/upload.php3.03 ▲0.0236.52 ▲1.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Keyword Difficulty Tool
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,724 ▲15315.84 ▲0.459.53 ▼0.2360.96 ▲11.69
Dashboard /wp-admin2,981 ▲475.89 ▼0.24144.52 ▲0.66117.63 ▼5.96
Posts /wp-admin/edit.php2,775 ▲362.69 ▲0.0066.39 ▼6.7873.00 ▼21.94
Add New Post /wp-admin/post-new.php1,698 ▲1518.42 ▼0.33410.11 ▲3.61129.04 ▲17.54
Media Library /wp-admin/upload.php1,843 ▲365.02 ▼0.01137.19 ▼31.54148.59 ▲21.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 text when accessed directly:
    • > /wp-content/plugins/keyword-difficulty-tool/includes/footer.php

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 uses markdown syntax to describe your plugin to the world
2 plugin tags: keyword difficulty tool, keyword difficulty checker

keyword-difficulty-tool/keyword-difficulty-tool.php Passed 13 tests

"Keyword Difficulty Tool" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Keyword Difficulty Tool Be smart, competitive keywords are hard to rank, let's find an easier one.

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
No dangerous file extensions were detected7,098 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS11,512146,181
PHP7161136917

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods633.33%
▷ Protected methods00.00%
▷ Private methods1266.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/keyword-difficulty-level-medium.png6.51KB5.47KB▼ 16.02%
images/keyword-difficulty-level-easy.png7.62KB6.53KB▼ 14.31%
images/keyword-difficulty-level-high.png8.05KB6.96KB▼ 13.59%
images/icon.png2.45KB1.05KB▼ 56.91%