89% venjue-widget

Code Review | Venjue Widget

WordPress plugin Venjue Widget scored89%from 54 tests.

About plugin

  • Plugin page: venjue-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 8, 2022
  • Latest release: Sep 8, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: venjue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /466 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.77ms] Passed 4 tests

Server-side resources used by Venjue Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.25 ▲0.25
Dashboard /wp-admin3.33 ▼0.0143.60 ▼16.89
Posts /wp-admin/edit.php3.38 ▲0.0341.13 ▼2.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.55 ▼13.93
Media Library /wp-admin/upload.php3.25 ▲0.0331.08 ▼5.84
Venjue /wp-admin/options-general.php?page=Venjue3.2229.93

Server storage [IO: ▲0.01MB] [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
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Venjue Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲24514.15 ▼0.2214.65 ▲12.8248.83 ▲6.22
Dashboard /wp-admin2,210 ▲255.85 ▼0.1699.99 ▼2.3337.84 ▼5.57
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0135.64 ▼1.6533.75 ▲1.31
Add New Post /wp-admin/post-new.php1,531 ▲1722.98 ▲5.32673.96 ▼4.7754.02 ▲2.66
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.1192.73 ▼8.5542.44 ▼2.79
Venjue /wp-admin/options-general.php?page=Venjue1,0352.3641.4828.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output 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
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 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
Attributes that require attention:
  • Requires at least: Version format is invalid
  • Contributors: Contributors not specified
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

venjue-widget/venjue_widget_plugin.php 85% from 13 tests

The principal PHP file in "Venjue Widget" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("venjue-widget.php" instead of "venjue_widget_plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 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
There were no executable files found in this plugin97 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP122794
JavaScript1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin