84% aweos-offcanvas-menu

Code Review | AWEOS Offcanvas Menu for Divi

WordPress plugin AWEOS Offcanvas Menu for Divi scored84%from 54 tests.

About plugin

  • Plugin page: aweos-offcanvas-menu
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Oct 12, 2023
  • Number of updates: 23
  • Update frequency: every 84.0 days
  • Top authors: aweos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,986 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼13.90ms] Passed 4 tests

A check of server-side resources used by AWEOS Offcanvas Menu for Divi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1326.16 ▼12.38
Dashboard /wp-admin3.52 ▲0.1743.68 ▼16.91
Posts /wp-admin/edit.php3.58 ▲0.2142.77 ▼5.07
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.05 ▼21.22
Media Library /wp-admin/upload.php3.38 ▲0.1535.36 ▲0.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for AWEOS Offcanvas Menu for Divi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16313.83 ▼0.509.04 ▲7.3936.64 ▼3.71
Dashboard /wp-admin2,198 ▲215.66 ▲0.1284.08 ▼3.5037.29 ▼2.75
Posts /wp-admin/edit.php2,100 ▲32.13 ▲0.1236.16 ▼0.6932.80 ▼3.43
Add New Post /wp-admin/post-new.php1,526 ▼023.57 ▲0.03686.81 ▲5.8954.20 ▼6.47
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0195.34 ▼6.4643.03 ▼1.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 154× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/Node/Expression/BlockReferenceExpression.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/Node/Expression/Binary/EndsWithBinary.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/TokenParser/ApplyTokenParser.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/Node/Expression/TestExpression.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/Node/Expression/GetAttrExpression.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\ameExpression' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/Node/Expression/AssignNameExpression.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/NodeVisitor/MacroAutoImportNodeVisitor.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/Sandbox/SecurityError.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/NodeVisitor/SafeAnalysisNodeVisitor.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\RuntimeLoader\\RuntimeLoaderInterface' not found in wp-content/plugins/aweos-offcanvas-menu/vendor/twig/twig/src/RuntimeLoader/FactoryRuntimeLoader.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: touch, divi, menu, navigation, mobile

aweos-offcanvas-menu/aweos-offcanvas-menu.php 92% from 13 tests

This is the main PHP file of "AWEOS Offcanvas Menu for Divi" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin32,009 lines of code in 535 files:
LanguageFilesBlank linesComment linesLines of code
PHP3863,9255,91317,454
JSON10008,469
reStructuredText1152,6162,5303,005
JavaScript53952731,917
CSS3641435
YAML5591282
Sass490181
make1245124
Markdown329055
Bourne Shell16143
Python17316533
Dockerfile12011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces28
Interfaces15
Traits0
Classes356
▷ Abstract classes143.93%
▷ Concrete classes34296.07%
▷ Final classes5114.91%
Methods912
▷ Static methods606.58%
▷ Public methods74781.91%
▷ Protected methods9310.20%
▷ Private methods727.89%
Functions143
▷ Named functions11882.52%
▷ Anonymous functions2517.48%
Constants53
▷ Global constants35.66%
▷ Class constants5094.34%
▷ Public constants50100.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
No PNG files were detected