83% custom-breakpoints-for-elementor

Code Review | Custom Breakpoints for Elementor

WordPress plugin Custom Breakpoints for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: custom-breakpoint...
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2020
  • Latest release: Apr 5, 2022
  • Number of updates: 24
  • Update frequency: every 24.5 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active /10,081 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.57MB] [CPU: ▼5.70ms] 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 /4.05 ▲0.5941.16 ▼1.17
Dashboard /wp-admin3.91 ▲0.6149.23 ▲1.11
Posts /wp-admin/edit.php3.96 ▲0.6151.89 ▲0.71
Add New Post /wp-admin/post-new.php6.45 ▲0.5682.82 ▼23.45
Media Library /wp-admin/upload.php3.77 ▲0.5438.26 ▲2.61
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.9437.84

Server storage [IO: ▲2.55MB] [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, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
jltma_mcb_activation_time
can_compress_scripts

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 /2,844 ▲8314.26 ▼0.091.67 ▲0.1338.41 ▼1.82
Dashboard /wp-admin2,250 ▲695.53 ▼0.1993.94 ▼11.2753.14 ▲9.70
Posts /wp-admin/edit.php2,171 ▲682.22 ▲0.2140.45 ▼1.8741.09 ▲6.28
Add New Post /wp-admin/post-new.php1,576 ▲3923.06 ▲4.77665.46 ▲65.8171.56 ▼1.09
Media Library /wp-admin/upload.php1,463 ▲664.26 ▲0.08104.49 ▲8.1149.46 ▲7.59
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,0452.1724.7430.76

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 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • jltma_mcb_activation_time
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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

Optimizations

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.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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,114 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2531,4829,532
PHP262,9627,3389,370
CSS1273210
JSON1001
SVG1001

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 complexity47.78
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes27
▷ Abstract classes518.52%
▷ Concrete classes2281.48%
▷ Final classes00.00%
Methods556
▷ Static methods417.37%
▷ Public methods42175.72%
▷ Protected methods9817.63%
▷ Private methods376.65%
Functions35
▷ Named functions38.57%
▷ Anonymous functions3291.43%
Constants50
▷ Global constants612.00%
▷ Class constants4488.00%
▷ Public constants44100.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