94% addonse

Code Review | Addonse

WordPress plugin Addonse scored 94% from 54 tests.

About plugin

  • Plugin page: addonse
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 5.9.2
  • First release: Aug 25, 2020
  • Latest release: Aug 25, 2020
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: pepalt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 277 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Addonse
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.18 ▲1.88
Dashboard /wp-admin3.41 ▲0.0133.55 ▼1.93
Posts /wp-admin/edit.php3.65 ▲0.0138.28 ▼0.17
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.18 ▼1,181.48
Media Library /wp-admin/upload.php3.30 ▲0.0125.97 ▲1.05

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Addonse
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲6114.99 ▼0.976.67 ▼0.092.87 ▲0.47
Dashboard /wp-admin2,905 ▲476.14 ▼0.08117.24 ▼14.82155.32 ▼2.04
Posts /wp-admin/edit.php2,696 ▲23.24 ▲0.0062.48 ▼2.48133.37 ▼5.59
Add New Post /wp-admin/post-new.php1,786 ▲7521.43 ▲0.31428.61 ▼17.16158.66 ▲3.49
Media Library /wp-admin/upload.php1,711 ▲135.42 ▼0.09144.68 ▲4.32187.02 ▼6.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Addonse\\add_action() in wp-content/plugins/addonse/includes/admin-notice.php:19

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 Passed 29 tests

readme.txt Passed 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
1 plugin tags: elementor widget image mask

addonse/addonse.php Passed 13 tests

Analyzing the main PHP file in "Addonse" version 1.0
75 characters long description:
Creative image widget for Elementor, your favourite WordPress page builder.

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
Success! There were no dangerous files found in this plugin551 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP995107489
CSS15744
SVG10017
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes120.00%
Methods30
▷ Static methods516.67%
▷ Public methods2583.33%
▷ Protected methods26.67%
▷ Private methods310.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin