84% addonse

Code Review | Addonse

WordPress plugin Addonse scored84%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: 6.3.1
  • 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

20+ active /530 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Addonse
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.54 ▼3.73
Dashboard /wp-admin3.31 ▲0.0147.87 ▲1.32
Posts /wp-admin/edit.php3.36 ▲0.0149.72 ▼3.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.85 ▼22.45
Media Library /wp-admin/upload.php3.24 ▲0.0140.72 ▲5.30

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, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Addonse
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.25 ▼0.021.62 ▼0.0853.47 ▲9.82
Dashboard /wp-admin2,198 ▲185.54 ▼0.1085.64 ▲0.0441.58 ▼1.18
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0338.30 ▼4.3338.20 ▲5.08
Add New Post /wp-admin/post-new.php1,532 ▲623.21 ▼0.38667.58 ▲51.2360.29 ▲2.03
Media Library /wp-admin/upload.php1,406 ▲64.19 ▼0.08107.57 ▲4.4748.98 ▲3.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
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 review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected551 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP995107489
CSS15744
SVG10017
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected