10% avasize

Code Review | Avasize

WordPress plugin Avasize scored10%from 54 tests.

About plugin

  • Plugin page: avasize
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: Oct 19, 2019
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: avasize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /729 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/avasize/includes/widgets/class-av-widget-avasize-library.php+48
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

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

This is a short check of server-side resources used by Avasize
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.03 ▲1.83
Dashboard /wp-admin3.32 ▼0.0247.83 ▼18.80
Posts /wp-admin/edit.php3.37 ▲0.0148.69 ▼1.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.98 ▼23.47
Media Library /wp-admin/upload.php3.24 ▲0.0137.29 ▲2.67

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
widget_avasz_widget_avszbtn
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Avasize
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.51 ▲0.132.16 ▲0.5343.20 ▲2.02
Dashboard /wp-admin2,206 ▲214.84 ▼1.01108.94 ▲5.5839.38 ▼5.65
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0141.42 ▼1.7036.07 ▼1.43
Add New Post /wp-admin/post-new.php1,544 ▲1418.08 ▼0.05654.26 ▲44.7554.33 ▼5.89
Media Library /wp-admin/upload.php1,388 ▼34.32 ▲0.1598.03 ▼7.7043.81 ▲1.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 did not uninstall successfully, 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 shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

avasize/avasize.php 92% from 13 tests

Analyzing the main PHP file in "Avasize" version 1.0.0
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP743165242

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity11.67
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods13
▷ Static methods323.08%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin