94% addon-package-for-elementor

Code Review | Addon Package for Elementor

WordPress plugin Addon Package for Elementor scored 94% 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: 5.9.2
  • 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

100+ active / 998 total downloads

Benchmarks

Plugin footprint Passed 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: ▼292.61ms] Passed 4 tests

Analyzing server-side resources used by Addon Package for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0353.34 ▲0.99
Dashboard /wp-admin3.43 ▲0.0232.50 ▼0.42
Posts /wp-admin/edit.php3.66 ▲0.0237.80 ▲1.64
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.85 ▼1,165.44
Media Library /wp-admin/upload.php3.31 ▲0.0124.63 ▼5.57

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Addon Package for Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,787 ▲3316.25 ▲0.276.54 ▲0.242.26 ▼0.43
Dashboard /wp-admin2,919 ▲586.12 ▼0.08115.80 ▼20.01159.77 ▼0.86
Posts /wp-admin/edit.php2,716 ▲313.25 ▲0.0265.35 ▲0.77139.99 ▼7.05
Add New Post /wp-admin/post-new.php1,685 ▼8818.15 ▼2.93397.33 ▼46.27155.60 ▼4.88
Media Library /wp-admin/upload.php1,722 ▲215.49 ▲0.04136.15 ▼8.57184.08 ▼8.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

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

This is the main PHP file of "Addon Package for Elementor" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable 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

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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
assets/img/placeholder.png15.33KB11.36KB▼ 25.86%
ressources/flexslider/images/bg_play_pause.png1.51KB0.52KB▼ 65.52%