89% happy-elementor-card

Code Review | Advanced Card Widget for Elementor

WordPress plugin Advanced Card Widget for Elementor scored 89% from 54 tests.

About plugin

  • Plugin page: happy-elementor-card
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Mar 4, 2019
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: thehappymonster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Advanced Card Widget for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.97 ▼0.23
Dashboard /wp-admin3.31 ▲0.0152.52 ▲3.41
Posts /wp-admin/edit.php3.36 ▲0.0049.07 ▲1.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.70 ▲2.10
Media Library /wp-admin/upload.php3.23 ▲0.0032.95 ▼0.01

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Card Widget for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.22 ▼1.021.82 ▼0.0543.82 ▲6.92
Dashboard /wp-admin2,224 ▲365.84 ▲0.81103.80 ▼8.2342.79 ▲1.89
Posts /wp-admin/edit.php2,109 ▲232.02 ▲0.0534.75 ▼4.6736.05 ▼1.61
Add New Post /wp-admin/post-new.php1,556 ▲2318.53 ▼4.84614.91 ▼51.6156.59 ▲1.51
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.0397.61 ▲0.3343.14 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though everything seems fine, this is not 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
The SRP test was a success

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: elementor, card, widget, blurb

happy-elementor-card/plugin.php 77% from 13 tests

The principal PHP file in "Advanced Card Widget for Elementor" v. 0.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("happy-elementor-card.php" instead of "plugin.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,247 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4136139915
CSS290180
Sass5292152

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods1780.95%
▷ Protected methods314.29%
▷ Private methods14.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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