90% majestic-widgets-for-elementor

Code Review | Cards Addons for ELementor by Majestic

WordPress plugin Cards Addons for ELementor by Majestic scored90%from 54 tests.

About plugin

  • Plugin page: majestic-widgets-...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 17, 2023
  • Latest release: Nov 2, 2023
  • Number of updates: 28
  • Update frequency: every 0.6 days
  • Top authors: majesticwidgets (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /103 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.35ms] Passed 4 tests

An overview of server-side resources used by Cards Addons for ELementor by Majestic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.61 ▼5.50
Dashboard /wp-admin3.31 ▼0.0446.86 ▼13.48
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.01 ▲3.64
Media Library /wp-admin/upload.php3.23 ▲0.0037.34 ▲3.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Cards Addons for ELementor by Majestic
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▲0.081.66 ▲0.1138.43 ▼0.48
Dashboard /wp-admin2,198 ▲175.63 ▼0.1389.93 ▼13.3139.67 ▼1.39
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0140.31 ▼2.7735.88 ▼0.85
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▼0.12679.99 ▼20.6763.64 ▲6.15
Media Library /wp-admin/upload.php1,400 ▼34.11 ▼0.10111.09 ▲10.9648.32 ▲4.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

majestic-widgets-for-elementor/majestic-widgets-for-elementor.php Passed 13 tests

This is the main PHP file of "Cards Addons for ELementor by Majestic" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
This Majestic widget plugin offers a set of cards widgets and addons for Elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,272 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,9231,2106,516
CSS24293842,579
JavaScript65223177

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity8.48
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods186
▷ Static methods00.00%
▷ Public methods11561.83%
▷ Protected methods7037.63%
▷ Private methods10.54%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin