94% stop-words

Code Review | StopWords

WordPress plugin StopWords scored 94% from 54 tests.

About plugin

  • Plugin page: stop-words
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.0
  • WordPress version: 5.8.1
  • First release: Jul 22, 2019
  • Latest release: Jul 23, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: obelchenko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 317 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.0840.57 ▲6.65
Dashboard /wp-admin3.14 ▲0.0851.37 ▲2.23
Posts /wp-admin/edit.php3.20 ▲0.0843.76 ▼2.23
Add New Post /wp-admin/post-new.php5.50 ▲0.0696.85 ▼566.75
Media Library /wp-admin/upload.php3.09 ▲0.0834.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,748 ▲17715.86 ▲0.4310.30 ▲1.9753.55 ▲1.19
Dashboard /wp-admin2,996 ▲685.91 ▼0.18131.49 ▼28.84143.63 ▲22.11
Posts /wp-admin/edit.php2,790 ▲512.71 ▲0.0265.75 ▲0.1798.76 ▲8.34
Add New Post /wp-admin/post-new.php1,709 ▲21118.77 ▼0.06397.89 ▲8.07114.14 ▼11.06
Media Library /wp-admin/upload.php1,784 ▼235.00 ▼0.01138.43 ▼22.15167.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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP38077399
CSS10023

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.25
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods17100.00%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img.png31.56KB12.13KB▼ 61.55%
icon.png1.53KB1.31KB▼ 14.61%