78% wp-master-widget

Code Review | WP Master Widget

WordPress plugin WP Master Widget scored78%from 54 tests.

About plugin

  • Plugin page: wp-master-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Aug 23, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: devcon1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼9.19ms] Passed 4 tests

This is a short check of server-side resources used by WP Master Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5142.80 ▲1.26
Dashboard /wp-admin3.82 ▲0.4751.54 ▼16.77
Posts /wp-admin/edit.php3.93 ▲0.5753.88 ▼2.87
Add New Post /wp-admin/post-new.php6.42 ▲0.5394.50 ▼18.37
Media Library /wp-admin/upload.php3.74 ▲0.5142.09 ▲3.21

Server storage [IO: ▲2.04MB] [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: 67 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_wp_master_widget_widget
widget_recent-comments

Browser metrics Passed 4 tests

WP Master Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.44 ▲0.171.60 ▼0.1340.91 ▼1.32
Dashboard /wp-admin2,213 ▲365.08 ▼0.58102.01 ▲3.1141.51 ▼5.40
Posts /wp-admin/edit.php2,125 ▲252.47 ▲0.4655.61 ▲12.7135.37 ▼5.25
Add New Post /wp-admin/post-new.php1,545 ▲1923.80 ▲0.31647.87 ▼25.6853.57 ▼7.58
Media Library /wp-admin/upload.php1,421 ▲244.80 ▲0.51107.32 ▲0.4642.40 ▼5.52

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 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_wp_master_widget_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-master-widget/public/partials/wp-master-widget-public-display.php
    • > /wp-content/plugins/wp-master-widget/admin/partials/wp-master-widget-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-master-widget/widgets/class-wp-master-widget-widget.php:9

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Donate link: Invalid URI found ("//wpmaster.com/donation")
The official readme.txt is a good inspiration

wp-master-widget/wp-master-widget.php 92% from 13 tests

The primary PHP file in "WP Master Widget" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 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
Success! There were no dangerous files found in this plugin10,656 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS11891475,018
PHP131886022,791
SVG1002,671
JavaScript32249176

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods2457.14%
▷ Protected methods00.00%
▷ Private methods1842.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 0.44MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
admin/css/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
admin/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
admin/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%