84% remove-capslock

Code Review | Remove CapsLock

WordPress plugin Remove CapsLock scored84%from 54 tests.

About plugin

  • Plugin page: remove-capslock
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 6, 2021
  • Latest release: Sep 10, 2021
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: codekraft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.87ms] Passed 4 tests

Server-side resources used by Remove CapsLock
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.82 ▼9.65
Dashboard /wp-admin3.31 ▲0.0146.51 ▼2.43
Posts /wp-admin/edit.php3.36 ▲0.0146.95 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.29 ▼9.27
Media Library /wp-admin/upload.php3.23 ▲0.0137.66 ▲3.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Remove CapsLock
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.67 ▼0.692.00 ▼0.3240.25 ▼8.05
Dashboard /wp-admin2,206 ▲185.85 ▲0.01103.51 ▼11.0239.67 ▼7.08
Posts /wp-admin/edit.php2,094 ▲52.01 ▲0.0139.47 ▲3.8133.88 ▼0.52
Add New Post /wp-admin/post-new.php1,536 ▼823.24 ▲5.00635.49 ▲22.4154.87 ▲3.57
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.0296.77 ▼1.6640.60 ▼5.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-capslock/remove-capslock.php:58

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: lowercase, text, uppercase, capslock

remove-capslock/remove-capslock.php Passed 13 tests

The main file in "Remove CapsLock" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
REMOVE UPPERCASE TEXT FROM TITLE CONTENT AND COMMENTS (without any change to database).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102228

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin