84% voce-post-widgets

Code Review | Voce Post Widgets

WordPress plugin Voce Post Widgets scored84%from 54 tests.

About plugin

  • Plugin page: voce-post-widgets
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Jul 2, 2014
  • Number of updates: 24
  • Update frequency: every 25.7 days
  • Top authors: markparolisi (91.67%)csloisel (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,125 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.93ms] Passed 4 tests

Analyzing server-side resources used by Voce Post Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.36 ▼5.81
Dashboard /wp-admin3.37 ▲0.0746.69 ▼3.22
Posts /wp-admin/edit.php3.49 ▲0.1348.49 ▼0.06
Add New Post /wp-admin/post-new.php5.95 ▲0.0780.36 ▼25.33
Media Library /wp-admin/upload.php3.30 ▲0.0735.65 ▼1.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Voce Post Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.031.61 ▼0.0536.54 ▼7.26
Dashboard /wp-admin2,198 ▲245.50 ▼0.0782.83 ▼4.6436.31 ▼0.15
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0135.40 ▼4.0134.16 ▼3.39
Add New Post /wp-admin/post-new.php1,526 ▼823.73 ▲5.23669.89 ▲47.8861.73 ▼9.36
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0693.15 ▼5.5140.19 ▼1.47

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/widgets.php): failed to open stream: No such file or directory in wp-content/plugins/voce-post-widgets/voce-post-widgets.php on line 32
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/voce-post-widgets/voce-post-widgets.php on line 32
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/widgets.php' (include_path='.:/usr/share/php') in wp-content/plugins/voce-post-widgets/voce-post-widgets.php on line 32

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (Widget Interface) image not found
Please take inspiration from this readme.txt

voce-post-widgets/voce-post-widgets.php Passed 13 tests

This is the main PHP file of "Voce Post Widgets" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
A better interface for managing your widgets.

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 plugin372 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14271186
PHP14792175
CSS10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods12100.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin