79% refreshingly-simple-slide-in-mobile-menu-widget

Code Review | Refreshingly Simple Slide-in Mobile Menu Widget

WordPress plugin Refreshingly Simple Slide-in Mobile Menu Widget scored79%from 54 tests.

About plugin

  • Plugin page: refreshingly-simp...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2022
  • Latest release: Mar 21, 2022
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: neckberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /221 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.84MB] [CPU: ▼53.06ms] Passed 4 tests

This is a short check of server-side resources used by Refreshingly Simple Slide-in Mobile Menu Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.324.75 ▼34.74
Dashboard /wp-admin2.17 ▼1.146.58 ▼42.22
Posts /wp-admin/edit.php2.17 ▼1.197.49 ▼40.66
Add New Post /wp-admin/post-new.php2.17 ▼3.727.75 ▼94.60
Media Library /wp-admin/upload.php2.17 ▼1.065.40 ▼24.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Refreshingly Simple Slide-in Mobile Menu Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.68 ▼1.009.00 ▲7.3239.43 ▼4.89
Dashboard /wp-admin2,206 ▲155.92 ▲1.0499.92 ▼8.9338.07 ▼1.26
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0338.03 ▲3.5533.37 ▼1.47
Add New Post /wp-admin/post-new.php1,514 ▼1917.60 ▼5.40666.37 ▼8.7052.19 ▼8.68
Media Library /wp-admin/upload.php1,382 ▼34.24 ▲0.0198.49 ▼2.6840.47 ▼2.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the dashicons handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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)
Everything seems fine, however this is by no means 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
No output text or server-side errors detected on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Add widgets.), #2 (Closed.), #3 (Open.)
The official readme.txt might help

refreshingly-simple-slide-in-mobile-menu-widget/refreshingly-simple-slide-in-mobile-menu-widget.php 85% from 13 tests

The main PHP file in "Refreshingly Simple Slide-in Mobile Menu Widget" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected740 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13142404642
CSS10157
JavaScript11029
JSON20012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods2450.00%
▷ Public methods4185.42%
▷ Protected methods00.00%
▷ Private methods714.58%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png221.23KB71.59KB▼ 67.64%
screenshot-3.png121.46KB31.72KB▼ 73.88%
screenshot-2.png80.59KB24.64KB▼ 69.43%