89% zr-elementor-addon

Code Review | ZIOR Elementor Addon

WordPress plugin ZIOR Elementor Addon scored89%from 54 tests.

About plugin

  • Plugin page: zr-elementor-addon
  • Plugin version: 0.1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2022
  • Latest release: Feb 4, 2023
  • Number of updates: 26
  • Update frequency: every 3.6 days
  • Top authors: reygcalantaol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.83ms] Passed 4 tests

Analyzing server-side resources used by ZIOR Elementor Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.83 ▼1.66
Dashboard /wp-admin3.31 ▲0.0045.51 ▲2.06
Posts /wp-admin/edit.php3.36 ▲0.0043.67 ▼6.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.63 ▼16.69
Media Library /wp-admin/upload.php3.23 ▲0.0035.04 ▲1.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for ZIOR Elementor Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.47 ▼0.201.67 ▼0.2140.50 ▼5.17
Dashboard /wp-admin2,203 ▲115.84 ▲0.9299.67 ▼7.0037.75 ▼4.98
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0333.61 ▼8.2135.52 ▼2.65
Add New Post /wp-admin/post-new.php1,538 ▲1723.26 ▲0.04670.93 ▼9.5662.94 ▲3.60
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0397.93 ▼0.5845.46 ▲1.80

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP 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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: advanced filter, posts filter, custom slider

zr-elementor-addon/zr-elementor.php 85% from 13 tests

Analyzing the main PHP file in "ZIOR Elementor Addon" version 0.1.7
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zr-elementor-addon.php" instead of "zr-elementor.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,317 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP153142442,307
CSS4004
JavaScript3093
Markdown1403

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods62
▷ Static methods34.84%
▷ Public methods5588.71%
▷ Protected methods58.06%
▷ Private methods23.23%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin