79% wollow

Code Review | Wollow

WordPress plugin Wollow scored79%from 54 tests.

About plugin

  • Plugin page: wollow
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 26, 2021
  • Latest release: Jul 26, 2021
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: alusio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /410 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.03MB] [CPU: ▼6.26ms] Passed 4 tests

Analyzing server-side resources used by Wollow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.05 ▼6.64
Dashboard /wp-admin3.33 ▲0.0343.27 ▼7.71
Posts /wp-admin/edit.php3.39 ▲0.0356.08 ▲4.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.16 ▼11.85
Media Library /wp-admin/upload.php3.26 ▲0.0338.99 ▲1.18
Wollow /wp-admin/admin.php?page=wollow3.2636.62

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
wollow1
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wollow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.75 ▼0.617.36 ▲5.0942.20 ▼5.78
Dashboard /wp-admin2,195 ▲185.66 ▲0.0194.83 ▲6.4938.57 ▼3.15
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0441.14 ▲2.6537.90 ▲2.70
Add New Post /wp-admin/post-new.php1,529 ▲323.19 ▼0.04663.12 ▼33.6058.64 ▲5.38
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.1497.65 ▼15.0444.24 ▼3.18
Wollow /wp-admin/admin.php?page=wollow1,1377.55193.8083.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • wollow1
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% 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 0% from 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
Please fix the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wollow/public/partials/wollow-public-display.php
    • > /wp-content/plugins/wollow/admin/partials/export-csv.php
    • > /wp-content/plugins/wollow/admin/partials/wollow-admin-display.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wollow/admin/partials/submenu/wollow-free.php:26
    • > PHP Warning
      Use of undefined constant WOLLOW_URL - assumed 'WOLLOW_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wollow/admin/partials/export-csv.php on line 6
    • > PHP Notice
      Undefined variable: status in wp-content/plugins/wollow/admin/partials/export-csv.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce notification, order notification, mobile notification, whatsapp notification

wollow/wollow.php Passed 13 tests

The principal PHP file in "Wollow" v. 1.0.1 is loaded by WordPress automatically on each request
57 characters long description:
Grow businnes with integration woocommerce with whatsapp.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,437 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP16244723873
CSS610848444
JavaScript53030100
SVG81220

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.89
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods57
▷ Static methods47.02%
▷ Public methods4884.21%
▷ Protected methods11.75%
▷ Private methods814.04%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/send.png0.24KB0.25KB0.00%
admin/images/close.png0.21KB0.20KB▼ 3.74%
admin/images/arrow-back.png0.18KB0.19KB0.00%
admin/images/close_dark.png0.32KB0.23KB▼ 26.93%
admin/images/lepas-integrasi.png0.30KB0.25KB▼ 16.34%