Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼141.61ms] Passed 4 tests
An overview of server-side resources used by StopWords
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 40.57 ▲6.65 |
Dashboard /wp-admin | 3.14 ▲0.08 | 51.37 ▲2.23 |
Posts /wp-admin/edit.php | 3.20 ▲0.08 | 43.76 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 96.85 ▼566.75 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 34.42 ▲0.31 |
Server storage [IO: ▲0.08MB] [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: 8 new files
Database: no new tables, 2 new options
New WordPress options |
---|
stopwords_exclude_users |
stopwords_rules |
Browser metrics Passed 4 tests
A check of browser resources used by StopWords
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,748 ▲177 | 15.86 ▲0.43 | 10.30 ▲1.97 | 53.55 ▲1.19 |
Dashboard /wp-admin | 2,996 ▲68 | 5.91 ▼0.18 | 131.49 ▼28.84 | 143.63 ▲22.11 |
Posts /wp-admin/edit.php | 2,790 ▲51 | 2.71 ▲0.02 | 65.75 ▲0.17 | 98.76 ▲8.34 |
Add New Post /wp-admin/post-new.php | 1,709 ▲211 | 18.77 ▼0.06 | 397.89 ▲8.07 | 114.14 ▼11.06 |
Media Library /wp-admin/upload.php | 1,784 ▼23 | 5.00 ▼0.01 | 138.43 ▼22.15 | 167.12 ▲41.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script 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 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/stop-words/stop-words.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
stop-words/stop-words.php 92% from 13 tests
The main PHP file in "StopWords" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 279 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected422 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 77 | 399 |
CSS | 1 | 0 | 0 | 23 |
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 code | 0.25 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 17 | |
▷ Static methods | 17 | 100.00% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img.png | 31.56KB | 12.13KB | ▼ 61.55% |
icon.png | 1.53KB | 1.31KB | ▼ 14.61% |