84% surbma-divi-extras

Code Review | Surbma | Divi Extras

WordPress plugin Surbma | Divi Extras scored 84% from 54 tests.

About plugin

  • Plugin page: surbma-divi-extras
  • Plugin version: 5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2014
  • Latest release: Apr 8, 2023
  • Number of updates: 78
  • Update frequency: every 38.9 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active / 44,721 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
Install script ran successfully

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

A check of server-side resources used by Surbma | Divi Extras
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.19 ▼8.57
Dashboard /wp-admin3.32 ▲0.0245.88 ▼3.24
Posts /wp-admin/edit.php3.37 ▲0.0141.63 ▼6.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.21 ▼11.98
Media Library /wp-admin/upload.php3.24 ▲0.0133.74 ▼0.98

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Surbma | Divi Extras
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.311.76 ▲0.0343.85 ▲1.18
Dashboard /wp-admin2,206 ▲185.91 ▲1.01111.60 ▲2.7642.96 ▼0.09
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0135.81 ▲1.5335.09 ▲0.63
Add New Post /wp-admin/post-new.php1,534 ▼1223.28 ▲5.17652.22 ▲42.5261.85 ▲7.44
Media Library /wp-admin/upload.php1,385 ▼64.18 ▲0.0295.16 ▼7.0142.38 ▼2.00

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/surbma-divi-extras/surbma-divi-extras.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: page builder, divi, divi theme, elegantthemes, pagebuilder...

surbma-divi-extras/surbma-divi-extras.php Passed 13 tests

The entry point to "Surbma | Divi Extras" version 5.1 is a PHP file that has certain tags in its header comment area
40 characters long description:
Useful modifications for the Divi Theme.

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 plugin177 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
LESS4310105
PHP1131635
PO File171833
Markdown1103
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin