90% debug-elementor

Code Review | Debug Elementor

WordPress plugin Debug Elementor scored90%from 54 tests.

About plugin

  • Plugin page: debug-elementor
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Jul 6, 2019
  • Number of updates: 6
  • Update frequency: every 85.8 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.82ms] Passed 4 tests

This is a short check of server-side resources used by Debug Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.26 ▼7.57
Dashboard /wp-admin3.33 ▲0.0345.04 ▼9.49
Posts /wp-admin/edit.php3.38 ▲0.0344.31 ▼3.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.60 ▼22.75
Media Library /wp-admin/upload.php3.25 ▲0.0337.27 ▲0.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Debug Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.194.27 ▲2.5140.96 ▼8.07
Dashboard /wp-admin2,203 ▲125.79 ▲0.8699.34 ▼14.1840.76 ▼3.83
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0435.68 ▼6.7034.61 ▼0.38
Add New Post /wp-admin/post-new.php1,542 ▲2822.97 ▲5.49676.91 ▲32.0655.15 ▼4.06
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.1294.57 ▼2.6641.28 ▼3.18

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

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Post feed with Elementor data.) image required
The official readme.txt might help

debug-elementor/debug-elementor.php Passed 13 tests

The principal PHP file in "Debug Elementor" v. 1.0.0 is loaded by WordPress automatically on each request
89 characters long description:
Debugging plugin for Elementor to display post/page data saved by Elementor page builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22316583

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods112.50%
▷ 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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png81.82KB28.09KB▼ 65.67%