90% elementrio

Code Review | Elementrio

WordPress plugin Elementrio scored90%from 54 tests.

About plugin

  • Plugin page: elementrio
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Nov 18, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: iqbal1hossain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /79 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Elementrio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.20 ▼5.75
Dashboard /wp-admin3.31 ▼0.0351.82 ▼8.50
Posts /wp-admin/edit.php3.37 ▲0.0150.25 ▲1.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.37 ▼6.69
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▲3.90

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Elementrio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5614.31 ▼0.041.74 ▼0.0139.52 ▼4.31
Dashboard /wp-admin2,192 ▲155.62 ▼0.0395.37 ▲8.2742.15 ▲4.27
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0238.67 ▼11.1136.49 ▼8.84
Add New Post /wp-admin/post-new.php1,529 ▼623.37 ▼1.63641.93 ▲38.6946.48 ▼19.39
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.0195.28 ▲1.6441.41 ▼0.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in elementrio/assets to your readme.txt
Please take inspiration from this readme.txt

elementrio/elementrio.php Passed 13 tests

The principal PHP file in "Elementrio" v. 1.1.1 is loaded by WordPress automatically on each request
48 characters long description:
An Elementor addon plugin for Elementor widgets.

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 plugin4,583 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS223312,804
PHP9244931,767
SVG10012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods1664.00%
▷ Protected methods936.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
core/admin/images/elementrio.png5.55KB3.24KB▼ 41.64%