84% widget-for-my-mitsu-estimation-form

Code Review | Widget for My Mitsu Estimation Form

WordPress plugin Widget for My Mitsu Estimation Form scored84%from 54 tests.

About plugin

  • Plugin page: widget-for-my-mit...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 23, 2017
  • Latest release: Mar 23, 2017
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: ounziw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 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
Install script ran successfully

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

A check of server-side resources used by Widget for My Mitsu Estimation Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.73 ▼0.79
Dashboard /wp-admin3.33 ▲0.0244.82 ▼4.29
Posts /wp-admin/edit.php3.38 ▲0.0244.87 ▼6.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.62 ▼15.81
Media Library /wp-admin/upload.php3.25 ▲0.0235.80 ▲0.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_mymitsu_widget

Browser metrics Passed 4 tests

A check of browser resources used by Widget for My Mitsu Estimation Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼0.974.21 ▲2.3846.14 ▲4.43
Dashboard /wp-admin2,206 ▲154.84 ▼0.04102.90 ▼2.9439.86 ▼7.67
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0437.33 ▼4.9132.91 ▼3.79
Add New Post /wp-admin/post-new.php1,533 ▲1923.00 ▲5.60652.15 ▼36.5151.26 ▼15.47
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.05100.97 ▼10.3039.58 ▼6.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_mymitsu_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-for-my-mitsu-estimation-form/widget-my-mitsu.php:12

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (A widget for My Mitsu.)
You can look at the official readme.txt

widget-for-my-mitsu-estimation-form/widget-my-mitsu.php 92% from 13 tests

"Widget for My Mitsu Estimation Form" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-for-my-mitsu-estimation-form.php" instead of "widget-my-mitsu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111949

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.42KB6.98KB▼ 51.56%