10% xenial-divi-schema-menu

Code Review | Xenial - Divi Schema Menu

WordPress plugin Xenial - Divi Schema Menu scored10%from 54 tests.

About plugin

  • Plugin page: xenial-divi-schem...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.0
  • WordPress version: 6.3.1
  • First release: Mar 29, 2019
  • Latest release: May 30, 2019
  • Number of updates: 41
  • Update frequency: every 1.5 days
  • Top authors: jtrimm007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'dsm_error_file' not found or invalid function name

Server metrics [RAM: ▼0.19MB] [CPU: ▼15.56ms] Passed 4 tests

An overview of server-side resources used by Xenial - Divi Schema Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.95 ▼1.29
Dashboard /wp-admin3.13 ▼0.1830.13 ▼18.29
Posts /wp-admin/edit.php3.26 ▼0.1041.23 ▼5.60
Add New Post /wp-admin/post-new.php5.45 ▼0.4371.30 ▼28.99
Media Library /wp-admin/upload.php3.19 ▼0.0329.25 ▼9.34

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Xenial - Divi Schema Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲17013.69 ▼0.747.02 ▲4.9245.00 ▼7.62
Dashboard /wp-admin2,217 ▲325.80 ▼0.0697.94 ▼9.1338.76 ▼5.80
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0734.86 ▼5.9529.28 ▼7.96
Add New Post /wp-admin/post-new.php1,526 ▼817.57 ▼5.56676.04 ▲17.9954.27 ▼5.60
Media Library /wp-admin/upload.php1,402 ▲174.21 ▲0.0193.41 ▼9.7141.53 ▲0.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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: seo, schema nav, google seo, schema, divi

xenial-divi-schema-menu/dsm-functions.php 77% from 13 tests

The main file in "Xenial - Divi Schema Menu" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("xenial-divi-schema-menu.php" instead of "dsm-functions.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin146 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP982103107
JavaScript1383139

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.33
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%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin