84% vialala

Code Review | Vialala

WordPress plugin Vialala scored84%from 54 tests.

About plugin

  • Plugin page: vialala
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0+
  • WordPress version: 6.3.1
  • First release: Oct 4, 2019
  • Latest release: Jun 9, 2022
  • Number of updates: 32
  • Update frequency: every 30.6 days
  • Top authors: vialala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.54ms] Passed 4 tests

An overview of server-side resources used by Vialala
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.58 ▼0.83
Dashboard /wp-admin3.42 ▲0.1249.66 ▼1.70
Posts /wp-admin/edit.php3.53 ▲0.1856.42 ▲4.75
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.41 ▼18.75
Media Library /wp-admin/upload.php3.34 ▲0.1140.76 ▲3.13

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Vialala
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.72 ▲0.462.01 ▲0.3543.52 ▼1.36
Dashboard /wp-admin2,195 ▲185.61 ▼0.0593.85 ▲2.8239.35 ▼4.17
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0139.61 ▼4.0436.37 ▲1.75
Add New Post /wp-admin/post-new.php1,528 ▼923.25 ▲4.86686.74 ▲47.7654.86 ▼10.31
Media Library /wp-admin/upload.php1,400 ▼04.12 ▼0.03110.96 ▼24.8846.29 ▼1.64

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vialala/index.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Vialala\\Shortcode\\add_shortcode() in wp-content/plugins/vialala/include/shortcode/OfferShortcode.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
The official readme.txt might help

vialala/index.php 92% from 13 tests

The primary PHP file in "Vialala" version 1.1.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vialala.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin647 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP789106437
CSS1280133
PO File1202077

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity16.17
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods24
▷ Static methods2395.83%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin