84% escape-to-edit-for-divi

Code Review | Escape to Edit for Divi

WordPress plugin Escape to Edit for Divi scored84%from 54 tests.

About plugin

  • Plugin page: escape-to-edit-fo...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2020
  • Latest release: Mar 4, 2020
  • Number of updates: 7
  • Update frequency: every 42.4 days
  • Top authors: veggie_89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Escape to Edit for Divi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.32 ▼4.71
Dashboard /wp-admin3.31 ▼0.0444.02 ▼12.24
Posts /wp-admin/edit.php3.36 ▲0.0045.84 ▲0.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.31 ▼12.22
Media Library /wp-admin/upload.php3.23 ▲0.0031.93 ▼4.35

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

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

Browser metrics Passed 4 tests

Escape to Edit for Divi: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.61 ▼0.958.15 ▲6.1738.58 ▲0.07
Dashboard /wp-admin2,206 ▲204.85 ▼1.08102.76 ▼13.3240.88 ▼3.81
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0438.97 ▲3.9335.64 ▼2.08
Add New Post /wp-admin/post-new.php1,533 ▼1218.35 ▲0.24607.96 ▼6.2683.21 ▲25.25
Media Library /wp-admin/upload.php1,391 ▲34.10 ▼0.0996.90 ▼10.5542.21 ▼2.19

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/escape-to-edit-for-divi/divi-escape-to-edit.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: squarespace, divi, edit, access, functionality...

escape-to-edit-for-divi/divi-escape-to-edit.php 92% from 13 tests

The primary PHP file in "Escape to Edit for Divi" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("escape-to-edit-for-divi.php" instead of "divi-escape-to-edit.php")

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 plugin17 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11112
PHP1085

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
No PNG files were detected