84% addon-package-for-elementor

Code Review | Addon Package for Elementor

WordPress plugin Addon Package for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: addon-package-for...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Oct 21, 2020
  • Number of updates: 38
  • Update frequency: every 0.4 days
  • Top authors: mlfactory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,495 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.59ms] Passed 4 tests

An overview of server-side resources used by Addon Package for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.28 ▲0.28
Dashboard /wp-admin3.33 ▲0.0249.45 ▲1.40
Posts /wp-admin/edit.php3.38 ▲0.0249.00 ▲0.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.55 ▼8.91
Media Library /wp-admin/upload.php3.25 ▲0.0235.99 ▲2.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Addon Package for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.26 ▼1.122.03 ▲0.0643.56 ▼14.45
Dashboard /wp-admin2,224 ▲364.84 ▼0.06113.03 ▲11.4842.06 ▲1.70
Posts /wp-admin/edit.php2,106 ▲172.02 ▼0.0341.19 ▲3.4136.50 ▲1.34
Add New Post /wp-admin/post-new.php1,547 ▲1423.33 ▲0.10584.81 ▲2.0151.97 ▼3.77
Media Library /wp-admin/upload.php1,406 ▲184.27 ▲0.1197.97 ▲1.2741.93 ▼1.11

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AddonPackageForElementor\\add_action() in wp-content/plugins/addon-package-for-elementor/plugin.php:97

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 to be fixed: Please take inspiration from this readme.txt

addon-package-for-elementor/addon-package-for-elementor.php Passed 13 tests

The main PHP script in "Addon Package for Elementor" version 1.0.2 is automatically included on every request by WordPress
111 characters long description:
Addon Package for Elementor. Includes FlexSlider (Carousel, Basic) + WooCommerce Slider (Products & Categories)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,263 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP6370712,527
JavaScript31631281,341
PO File4352672764
CSS31362307
LESS818070305
SVG10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity30.00
▷ Minimum class complexity2.00
▷ Maximum class complexity65.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods36
▷ Static methods12.78%
▷ Public methods2775.00%
▷ Protected methods822.22%
▷ Private methods12.78%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ressources/flexslider/images/bg_play_pause.png1.51KB0.52KB▼ 65.52%
assets/img/placeholder.png15.33KB11.36KB▼ 25.86%