83% responsive-divi-candy

Code Review | Responsive Divi Candy

WordPress plugin Responsive Divi Candy scored83%from 54 tests.

About plugin

  • Plugin page: responsive-divi-c...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Mar 5, 2021
  • Latest release: Apr 1, 2021
  • Number of updates: 8
  • Update frequency: every 3.6 days
  • Top authors: divicandy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.20ms] Passed 4 tests

A check of server-side resources used by Responsive Divi Candy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0845.80 ▲2.90
Dashboard /wp-admin3.38 ▲0.0853.07 ▼0.27
Posts /wp-admin/edit.php3.49 ▲0.1451.29 ▲0.06
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.96 ▼3.50
Media Library /wp-admin/upload.php3.30 ▲0.0742.60 ▲4.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Divi Candy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.54 ▼0.855.82 ▲4.0546.89 ▲0.08
Dashboard /wp-admin2,225 ▲224.84 ▼1.06105.10 ▼5.8937.62 ▼1.99
Posts /wp-admin/edit.php2,107 ▲102.02 ▼0.0437.23 ▲0.2632.37 ▲0.98
Add New Post /wp-admin/post-new.php1,535 ▼1023.32 ▲0.21638.93 ▲5.0052.21 ▼10.87
Media Library /wp-admin/upload.php1,401 ▲14.25 ▲0.06105.74 ▼16.6446.94 ▼2.91

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/responsive-divi-candy/admin/partials/diviresponsive-admin-display.php
    • > /wp-content/plugins/responsive-divi-candy/public/partials/diviresponsive-public-display.php

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

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: divi, divi plugin, divi theme, divi page builder, divi builder

responsive-divi-candy/diviresponsive.php 77% from 13 tests

"Responsive Divi Candy" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-divi-candy.php" instead of "diviresponsive.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.1" instead of "5.2")

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
Success! There were no dangerous files found in this plugin865 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12137595288
PO File393108248
JavaScript24973194
CSS23814135

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.71
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.19
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin