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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 35.63 ▲13.08 |
Dashboard /wp-admin | 3.12 ▲0.07 | 44.64 ▲3.16 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 42.65 ▼4.39 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 97.69 ▼544.95 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 32.56 ▼2.27 |
Keyword Count & Density Calc /wp-admin/options-general.php?page=wpsos-kdc-settings | 3.03 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.95 ▲0.37 | 7.89 ▼1.18 | 47.48 ▼3.97 |
Dashboard /wp-admin | 2,978 ▲47 | 6.00 ▼0.13 | 132.35 ▲0.10 | 109.13 ▼9.91 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.02 | 61.77 ▼6.35 | 94.48 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,675 ▲3 | 18.71 ▼0.08 | 366.53 ▼10.84 | 103.18 ▼13.14 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▼0.01 | 161.69 ▲19.44 | 116.98 ▼4.96 |
Keyword Count & Density Calc /wp-admin/options-general.php?page=wpsos-kdc-settings | 1,130 | 2.09 | 56.18 | 97.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 22 | 36 | 367 |
CSS | 1 | 16 | 0 | 167 |
JavaScript | 1 | 0 | 0 | 14 |
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 code | 0.33 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/page-edit.png | 17.47KB | 7.86KB | ▼ 55.01% |
img/general-settings.png | 84.83KB | 32.64KB | ▼ 61.53% |
img/count.png | 41.27KB | 14.91KB | ▼ 63.88% |
img/advanced-settings.png | 85.61KB | 34.51KB | ▼ 59.69% |