90% voce-widget-cache

Code Review | Voce Widget Cache

WordPress plugin Voce Widget Cache scored90%from 54 tests.

About plugin

  • Plugin page: voce-widget-cache
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2012
  • Latest release: Jan 5, 2015
  • Number of updates: 18
  • Update frequency: every 42.6 days
  • Top authors: markparolisi (55.56%)csloisel (38.89%)kevinlangleyjr (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Voce Widget Cache
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.17 ▼10.57
Dashboard /wp-admin3.32 ▲0.0250.02 ▼3.48
Posts /wp-admin/edit.php3.37 ▲0.0150.36 ▲4.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.73 ▼9.88
Media Library /wp-admin/upload.php3.24 ▲0.0133.44 ▼1.57

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Voce Widget Cache
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.111.75 ▼0.0740.78 ▼2.78
Dashboard /wp-admin2,203 ▲155.86 ▲0.76103.47 ▼14.5440.73 ▼6.19
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0436.75 ▼5.6935.93 ▼0.72
Add New Post /wp-admin/post-new.php1,514 ▼917.47 ▼5.94698.85 ▲96.5067.56 ▲15.57
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.03100.01 ▼12.1643.48 ▼0.58

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: widget

voce-widget-cache/voce-widget-cache.php Passed 13 tests

Analyzing the main PHP file in "Voce Widget Cache" version 1.5.2
31 characters long description:
Serve cached WordPress Widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1184884

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin