84% clean-menu

Code Review | Clean Menu

WordPress plugin Clean Menu scored84%from 54 tests.

About plugin

  • Plugin page: clean-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2021
  • Latest release: Jun 23, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: tomek00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /321 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▲15.20ms] Passed 4 tests

Analyzing server-side resources used by Clean Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0562.08 ▲21.27
Dashboard /wp-admin3.38 ▲0.0863.40 ▲13.82
Posts /wp-admin/edit.php3.43 ▲0.0770.20 ▲23.40
Add New Post /wp-admin/post-new.php5.96 ▲0.07101.66 ▲3.53
Media Library /wp-admin/upload.php3.32 ▲0.0955.25 ▲22.17

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

Browser metrics Passed 4 tests

A check of browser resources used by Clean Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.26 ▼1.111.67 ▼0.2344.71 ▲4.33
Dashboard /wp-admin2,222 ▲345.84 ▼0.06116.41 ▲10.1942.14 ▼0.73
Posts /wp-admin/edit.php2,108 ▲161.99 ▼0.0538.74 ▼6.9233.44 ▼2.43
Add New Post /wp-admin/post-new.php1,546 ▲323.36 ▲5.01677.56 ▲67.7151.83 ▼6.80
Media Library /wp-admin/upload.php1,401 ▲194.19 ▼0.06106.79 ▲8.3542.86 ▼0.88

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please 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 load_plugin_textdomain() in wp-content/plugins/clean-menu/clean-menu.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: page, dashboard, menu, submenu

clean-menu/clean-menu.php Passed 13 tests

The entry point to "Clean Menu" version 1.0 is a PHP file that has certain tags in its header comment area
31 characters long description:
Hide the menus on the dashboard

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
Everything looks great! No dangerous files found in this plugin1,335 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110691,213
PO File15365122

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions91
▷ Named functions91100.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.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png134.17KB44.98KB▼ 66.48%