90% voce-group-keys

Code Review | Voce Group Keys

WordPress plugin Voce Group Keys scored90%from 54 tests.

About plugin

  • Plugin page: voce-group-keys
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0
  • WordPress version: 6.3.1
  • First release: Jan 6, 2015
  • Latest release: Feb 3, 2015
  • Number of updates: 3
  • Update frequency: every 35.4 days
  • Top authors: banderon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Voce Group Keys
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.93 ▼6.00
Dashboard /wp-admin3.32 ▲0.0148.20 ▼8.36
Posts /wp-admin/edit.php3.37 ▲0.0148.91 ▼2.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.57 ▼9.03
Media Library /wp-admin/upload.php3.24 ▲0.0139.77 ▲1.54

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Voce Group Keys
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.36 ▲0.001.88 ▼0.3340.65 ▼7.00
Dashboard /wp-admin2,195 ▲215.68 ▲0.0890.09 ▼6.2541.17 ▼3.68
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0335.88 ▼0.4731.86 ▼3.05
Add New Post /wp-admin/post-new.php1,545 ▼023.32 ▲0.16696.07 ▲12.0961.44 ▲0.17
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.0399.28 ▼15.0439.88 ▼8.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: cache, keys, group

voce-group-keys/voce-group-keys.php Passed 13 tests

The principal PHP file in "Voce Group Keys" v. 1.0.1 is loaded by WordPress automatically on each request
125 characters long description:
Create string keys for caching based off of specified groups, allowing clearing keys based on the groups to which they belong

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231159

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods583.33%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected