74% voce-submenu-items

Code Review | Voce Submenu Items

WordPress plugin Voce Submenu Items scored74%from 54 tests.

About plugin

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,993 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.23MB] [CPU: ▼38.17ms] Passed 4 tests

Analyzing server-side resources used by Voce Submenu Items
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7214.91 ▼23.80
Dashboard /wp-admin2.78 ▼0.5314.26 ▼30.51
Posts /wp-admin/edit.php2.78 ▼0.5815.91 ▼30.32
Add New Post /wp-admin/post-new.php2.78 ▼3.1115.00 ▼68.05
Media Library /wp-admin/upload.php2.78 ▼0.4515.03 ▼17.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
esselink_nu_settings_wp_collector_ps_desktop
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Voce Submenu Items
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.084.49 ▲2.6442.41 ▼6.84
Dashboard /wp-admin2,206 ▲184.86 ▼0.05106.41 ▼0.0440.51 ▼3.12
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0638.65 ▼4.8234.88 ▼3.18
Add New Post /wp-admin/post-new.php1,542 ▲418.58 ▼4.82598.88 ▼19.2751.19 ▼10.54
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0098.06 ▼5.1041.48 ▼2.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Voce_Submenu_Nav_Menu_Items::init() should not be called statically
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • esselink_nu_settings_wp_collector_ps_desktop
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/voce-submenu-items/voce-submenu-items.php:121

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: nested, menus, navigation

voce-submenu-items/voce-submenu-items.php Passed 13 tests

"Voce Submenu Items" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Avoid giant Nav Menus by aggregating multiple "submenus" into a single Menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1273757

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.63MB with 0.37MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png120.55KB49.91KB▼ 58.60%
assets/screenshot-3.png406.47KB164.10KB▼ 59.63%
assets/screenshot-2.png114.82KB47.58KB▼ 58.56%