89% more-widgets

Code Review | More Widgets

WordPress plugin More Widgets scored89%from 54 tests.

About plugin

  • Plugin page: more-widgets
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9.3
  • WordPress version: 6.3.1
  • First release: Oct 28, 2019
  • Latest release: May 13, 2022
  • Number of updates: 7
  • Update frequency: every 133.0 days
  • Top authors: WPExplorer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /3,838 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.55MB] [CPU: ▼2.73ms] Passed 4 tests

This is a short check of server-side resources used by More Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5546.95 ▲3.04
Dashboard /wp-admin3.89 ▲0.5954.28 ▼1.94
Posts /wp-admin/edit.php3.94 ▲0.5950.94 ▼0.85
Add New Post /wp-admin/post-new.php6.41 ▲0.5386.02 ▼11.18
Media Library /wp-admin/upload.php3.75 ▲0.5240.63 ▲7.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 17 new options
New WordPress options
widget_mw_users
widget_mw_recent_comments_avatars
widget_mw_gmap
widget_mw_newsletter
widget_mw_posts_slider
widget_mw_advanced_recent_posts
widget_recent-posts
can_compress_scripts
db_upgraded
widget_mw_social_profiles
...

Browser metrics Passed 4 tests

More Widgets: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.31 ▼0.071.86 ▲0.1744.02 ▲1.19
Dashboard /wp-admin2,198 ▲185.62 ▼0.0287.06 ▼12.7843.39 ▲0.84
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0134.55 ▼0.3132.71 ▼3.87
Add New Post /wp-admin/post-new.php1,541 ▲1323.06 ▲0.32645.05 ▼46.4856.41 ▼0.70
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.01100.74 ▼9.0144.52 ▼4.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 17 options in the database
    • widget_mw_recent_comments_avatars
    • widget_recent-comments
    • can_compress_scripts
    • widget_mw_business_info
    • widget_mw_posts_slider
    • widget_mw_facebook_page
    • widget_theysaidso_widget
    • widget_mw_users
    • widget_recent-posts
    • db_upgraded
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive 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)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in more-widgets/assets to your readme.txt
The official readme.txt is a good inspiration

more-widgets/more-widgets.php 77% from 13 tests

The entry point to "More Widgets" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.7")
  • Description: The description should be shorter than 140 characters (currently 166 characters long)
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,911 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP147337622,144
Sass3930540
CSS42410106
JavaScript3221465
SVG10040
JSON10016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity17.85
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods66
▷ Static methods00.00%
▷ Public methods4162.12%
▷ Protected methods00.00%
▷ Private methods2537.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected