84% navigation-toggle-4-divi

Code Review | Navigation Toggle 4 Divi

WordPress plugin Navigation Toggle 4 Divi scored 84% from 54 tests.

About plugin

  • Plugin page: navigation-toggle...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Mar 7, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mrx3k1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 851 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.60ms] Passed 4 tests

Server-side resources used by Navigation Toggle 4 Divi
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.45 ▼8.57
Dashboard /wp-admin3.32 ▲0.0245.36 ▼5.68
Posts /wp-admin/edit.php3.38 ▲0.0269.29 ▲18.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.22 ▼4.76
Media Library /wp-admin/upload.php3.25 ▲0.0136.28 ▲0.63
Nav-Toggle 4 Divi /wp-admin/options-general.php?page=clx-dnt3.2133.05

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Navigation Toggle 4 Divi: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.201.68 ▼0.3840.04 ▼3.38
Dashboard /wp-admin2,213 ▲254.84 ▼1.06114.36 ▼1.2443.92 ▲6.35
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0642.11 ▲1.5834.42 ▼1.71
Add New Post /wp-admin/post-new.php1,545 ▲3118.20 ▲0.68603.05 ▼29.1451.21 ▼16.86
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.0197.70 ▼2.6642.07 ▼2.90
Nav-Toggle 4 Divi /wp-admin/options-general.php?page=clx-dnt7912.1826.9830.99

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/navigation-toggle-4-divi/navigation-toggle-4-divi.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === navigation-toggle-4-divi === )
The official readme.txt might help

navigation-toggle-4-divi/navigation-toggle-4-divi.php Passed 13 tests

"Navigation Toggle 4 Divi" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
52 characters long description:
Toggle navigation menu when the user clicks outside.

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 plugin50 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1202450

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin