10% keyword-counter-and-density-calculator

Code Review | Keyword Counter And Density Calculator

WordPress plugin Keyword Counter And Density Calculator scored 10% from 54 tests.

About plugin

  • Plugin page: keyword-counter-a...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 5.8.1
  • First release: Apr 20, 2016
  • Latest release: May 11, 2016
  • Number of updates: 3
  • Update frequency: every 7.0 days
  • Top authors: stubgo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,783 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/keyword-counter-and-density-calculator/keyword-counter-density-calculator.php+26
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.06MB] [CPU: ▼137.11ms] Passed 4 tests

This is a short check of server-side resources used by Keyword Counter And Density Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1735.63 ▲13.08
Dashboard /wp-admin3.12 ▲0.0744.64 ▲3.16
Posts /wp-admin/edit.php3.17 ▲0.0642.65 ▼4.39
Add New Post /wp-admin/post-new.php5.48 ▲0.0597.69 ▼544.95
Media Library /wp-admin/upload.php3.06 ▲0.0532.56 ▼2.27
Keyword Count & Density Calc /wp-admin/options-general.php?page=wpsos-kdc-settings3.0330.75

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
wpsos_kdc_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Keyword Counter And Density Calculator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.95 ▲0.377.89 ▼1.1847.48 ▼3.97
Dashboard /wp-admin2,978 ▲476.00 ▼0.13132.35 ▲0.10109.13 ▼9.91
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0261.77 ▼6.3594.48 ▲3.58
Add New Post /wp-admin/post-new.php1,675 ▲318.71 ▼0.08366.53 ▼10.84103.18 ▼13.14
Media Library /wp-admin/upload.php1,815 ▲85.03 ▼0.01161.69 ▲19.44116.98 ▼4.96
Keyword Count & Density Calc /wp-admin/options-general.php?page=wpsos-kdc-settings1,1302.0956.1897.29

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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: optimization, keyword counter, keywords, keyword density, keyword...

keyword-counter-and-density-calculator/keyword-counter-density-calculator.php 92% from 13 tests

"Keyword Counter And Density Calculator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("keyword-counter-and-density-calculator.php" instead of "keyword-counter-density-calculator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected548 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP52236367
CSS1160167
JavaScript10014

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/page-edit.png17.47KB7.86KB▼ 55.01%
img/general-settings.png84.83KB32.64KB▼ 61.53%
img/count.png41.27KB14.91KB▼ 63.88%
img/advanced-settings.png85.61KB34.51KB▼ 59.69%