72% 3d-menu-awesome

Code Review | 3D Menu Awesome by Themes Awesome

WordPress plugin 3D Menu Awesome by Themes Awesome scored72%from 54 tests.

About plugin

  • Plugin page: 3d-menu-awesome
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 10
  • Update frequency: every 77.9 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /990 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.89MB] [CPU: ▲14.22ms] Passed 4 tests

This is a short check of server-side resources used by 3D Menu Awesome by Themes Awesome
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.38 ▲1.9176.83 ▲31.27
Dashboard /wp-admin5.23 ▲1.9365.84 ▲12.02
Posts /wp-admin/edit.php5.28 ▲1.9376.72 ▲25.33
Add New Post /wp-admin/post-new.php7.76 ▲1.88104.56 ▼0.13
Media Library /wp-admin/upload.php5.07 ▲1.8458.36 ▲19.67

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 554 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for 3D Menu Awesome by Themes Awesome
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,233 ▲47218.58 ▲4.446.67 ▲5.0043.95 ▼1.84
Dashboard /wp-admin2,519 ▲3398.97 ▲3.45175.56 ▲83.6543.95 ▼2.46
Posts /wp-admin/edit.php2,451 ▲3516.10 ▲4.1072.91 ▲34.9031.64 ▼5.34
Add New Post /wp-admin/post-new.php1,634 ▲10819.91 ▼3.27697.29 ▲24.6135.74 ▼16.59
Media Library /wp-admin/upload.php1,587 ▲1876.76 ▲2.55109.90 ▲4.0544.58 ▲1.17
Documentation /wp-admin/crb_carbon_fields_container_threed_docs.php260.420.1513.37
Go Pro /wp-admin/crb_carbon_fields_container_threed_go_pro.php260.420.086.80
3D Menu /wp-admin/crb_carbon_fields_container_threed_menu_awesome_opts.php260.420.117.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 124× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/Text_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Service/REST_API_Service.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Carbon_Fields\\Provider\\add_filter() in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:254
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Term_Condition.php:30
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/templates/Container/post_meta.php:1
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Network_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\File_Field' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/Image_Field.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Post_Meta_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/3d-menu-awesome/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/crb_carbon_fields_container_threed_docs.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_threed_docs.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_threed_go_pro.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_threed_go_pro.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_threed_menu_awesome_opts.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_threed_menu_awesome_opts.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: custom nav, menu, custom menu, menu layout, navigation layout...

3d-menu-awesome/threed-menu-awesome.php 85% from 13 tests

This is the main PHP file of "3D Menu Awesome by Themes Awesome" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("3d-menu-awesome.php" instead of "threed-menu-awesome.php")
  • 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected31,064 lines of code in 471 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1915,4469,05013,986
PHP1712,8037,2489,839
CSS184741,1722,628
Sass5136701,936
PO File216147831,673
JSON1200797
Markdown6520162
SVG10043

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.05
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces26
Interfaces6
Traits0
Classes136
▷ Abstract classes118.09%
▷ Concrete classes12591.91%
▷ Final classes10.80%
Methods964
▷ Static methods10210.58%
▷ Public methods78881.74%
▷ Protected methods16617.22%
▷ Private methods101.04%
Functions124
▷ Named functions3729.84%
▷ Anonymous functions8770.16%
Constants39
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/menu3d-3.png4.59KB3.03KB▼ 33.96%
assets/menu3d-4.png2.89KB1.54KB▼ 46.75%
assets/menu3d-6.png3.79KB2.12KB▼ 44.14%
assets/menu3d-2.png5.09KB2.46KB▼ 51.74%
assets/menu3d-5.png3.78KB2.08KB▼ 44.95%