89% which-addon-for-elementor

Code Review | Which Elementor Addon

WordPress plugin Which Elementor Addon scored89%from 54 tests.

About plugin

  • Plugin page: which-addon-for-e...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Dec 9, 2019
  • Latest release: Mar 18, 2021
  • Number of updates: 17
  • Update frequency: every 27.4 days
  • Top authors: obiplabon (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active /7,246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.57ms] Passed 4 tests

An overview of server-side resources used by Which Elementor Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.29 ▲0.80
Dashboard /wp-admin3.35 ▲0.0145.42 ▼12.58
Posts /wp-admin/edit.php3.40 ▲0.0544.60 ▼5.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.62 ▼20.10
Media Library /wp-admin/upload.php3.27 ▲0.0435.08 ▲0.20

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Which Elementor Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4813.19 ▼1.071.73 ▼0.3744.17 ▲3.60
Dashboard /wp-admin2,225 ▲374.90 ▲0.01104.78 ▼7.4243.65 ▲4.78
Posts /wp-admin/edit.php2,107 ▲182.01 ▼0.0435.21 ▼1.2534.10 ▼1.48
Add New Post /wp-admin/post-new.php1,552 ▲2223.58 ▲5.12653.61 ▼11.7460.20 ▲8.47
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0496.05 ▼4.9941.22 ▼2.70

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
4 plugin tags: elementor page builder, elementor tools, elementor addons, elementor widgets

which-addon-for-elementor/which-addon-for-elementor.php 77% from 13 tests

The main PHP file in "Which Elementor Addon" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 238 characters long)
  • 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
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin267 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP14496197
CSS25038
JavaScript26032

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods12100.00%
▷ Public methods866.67%
▷ Protected methods18.33%
▷ Private methods325.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected