84% make-my-work-better-by-workinconfidence

Code Review | Make My Work Better Widget

WordPress plugin Make My Work Better Widget scored84%from 54 tests.

About plugin

  • Plugin page: make-my-work-bett...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 26, 2018
  • Latest release: Dec 26, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: williamsdb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Make My Work Better Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.43 ▼1.78
Dashboard /wp-admin3.31 ▲0.0146.50 ▼5.20
Posts /wp-admin/edit.php3.36 ▲0.0149.35 ▼4.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.66 ▲3.86
Media Library /wp-admin/upload.php3.23 ▲0.0136.77 ▼1.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Make My Work Better Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.30 ▼0.241.76 ▲0.0242.99 ▼2.42
Dashboard /wp-admin2,195 ▲185.55 ▼0.0386.08 ▼15.8040.16 ▼2.85
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0840.96 ▲1.1136.51 ▼0.00
Add New Post /wp-admin/post-new.php1,526 ▼023.09 ▼0.57665.54 ▼36.1356.78 ▼10.74
Media Library /wp-admin/upload.php1,400 ▲34.17 ▲0.0498.52 ▼4.6045.59 ▼1.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/make-my-work-better-by-workinconfidence/wic-mmwb-widget.php:11

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: No tags were detected
The official readme.txt might help

make-my-work-better-by-workinconfidence/wic-mmwb-widget.php 92% from 13 tests

The main PHP file in "Make My Work Better Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("make-my-work-better-by-workinconfidence.php" instead of "wic-mmwb-widget.php")

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 plugin30 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP171019
CSS10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin