90% sublimetheme-advanced-addons-for-elementor

Code Review | SublimeTheme - Advanced Addons for Elementor

WordPress plugin SublimeTheme - Advanced Addons for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: sublimetheme-adva...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2023
  • Latest release: Jul 15, 2023
  • Number of updates: 3
  • Update frequency: every 42.7 days
  • Top authors: sublimetheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /71 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.01MB] [CPU: ▼9.15ms] Passed 4 tests

This is a short check of server-side resources used by SublimeTheme - Advanced Addons for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.75 ▼5.11
Dashboard /wp-admin3.32 ▼0.0251.33 ▼11.92
Posts /wp-admin/edit.php3.37 ▲0.0248.37 ▼3.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.70 ▼16.38
Media Library /wp-admin/upload.php3.24 ▲0.0141.00 ▲4.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SublimeTheme - Advanced Addons for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.73 ▲0.091.69 ▲0.0145.86 ▲0.02
Dashboard /wp-admin2,218 ▲385.61 ▼0.0687.04 ▼13.2739.48 ▼4.45
Posts /wp-admin/edit.php2,124 ▲272.04 ▲0.0537.69 ▼1.5635.33 ▼2.16
Add New Post /wp-admin/post-new.php1,545 ▲1923.26 ▲0.30655.08 ▼21.6249.21 ▲1.76
Media Library /wp-admin/upload.php1,420 ▲234.28 ▲0.0999.85 ▲0.9242.03 ▼8.21

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

sublimetheme-advanced-addons-for-elementor/sublimetheme-advanced-addons-for-elementor.php Passed 13 tests

"SublimeTheme - Advanced Addons for Elementor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
A collection of 7 Advanced Elementor Widgets for elementor built by SublimeTheme.

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
Success! There were no dangerous files found in this plugin6,666 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP126933365,850
CSS615713802
JavaScript10014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.36
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods72
▷ Static methods79.72%
▷ Public methods5880.56%
▷ Protected methods1419.44%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected