83% custom-breakpoints-for-elementor

Code Review | Custom Breakpoints for Elementor

WordPress plugin Custom Breakpoints for Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: custom-breakpoint...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 26, 2020
  • Latest release: Aug 8, 2021
  • Number of updates: 22
  • Update frequency: every 15.8 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

200+ active / 7,285 total downloads


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.10MB] [CPU: ▼142.66ms] Passed 4 tests

A check of server-side resources used by Custom Breakpoints for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1635.97 ▲11.55
Dashboard /wp-admin3.19 ▲0.1443.55 ▼2.13
Posts /wp-admin/edit.php3.24 ▲0.1243.35 ▼10.12
Add New Post /wp-admin/post-new.php5.49 ▲0.0689.12 ▼560.47
Media Library /wp-admin/upload.php3.07 ▲0.0732.19 ▲2.07
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.1429.74

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Breakpoints for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,776 ▲13915.93 ▲0.448.38 ▼2.3253.94 ▲5.90
Dashboard /wp-admin3,040 ▲1065.84 ▼0.13144.89 ▼4.18125.11 ▲8.40
Posts /wp-admin/edit.php2,831 ▲922.76 ▲0.0773.25 ▲0.18118.15 ▲20.94
Add New Post /wp-admin/post-new.php1,739 ▲14516.17 ▼2.42398.60 ▲9.34114.26 ▼2.38
Media Library /wp-admin/upload.php1,891 ▲845.09 ▲0.06160.92 ▼0.01126.16 ▼6.11
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,3522.3962.8286.86

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • jltma_mcb_activation_time

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/custom-breakpoints-for-elementor/inc/class-tgm-plugin-activation.php:2109

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 issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Custom Breakpoints for Elementor), #2 (Custom Breakpoint editor)
You can look at the official readme.txt

custom-breakpoints-for-elementor/custom-breakpoints-for-elementor.php 85% from 13 tests

The entry point to "Custom Breakpoints for Elementor" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected19,448 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity49.85
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes518.52%
▷ Concrete classes2281.48%
▷ Final classes00.00%
▷ Static methods366.62%
▷ Public methods41375.92%
▷ Protected methods9818.01%
▷ Private methods336.07%
▷ Named functions39.38%
▷ Anonymous functions2990.62%
▷ Global constants614.29%
▷ Class constants3685.71%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected