78% acapela-vaas

Code Review | Acapela VaaS

WordPress plugin Acapela VaaS scored78%from 54 tests.

About plugin

  • Plugin page: acapela-vaas
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-4.9.7
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Dec 28, 2018
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: wavenetsprl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /718 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.20ms] Passed 4 tests

This is a short check of server-side resources used by Acapela VaaS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0547.10 ▲6.41
Dashboard /wp-admin3.38 ▲0.0452.45 ▼4.92
Posts /wp-admin/edit.php3.50 ▲0.1048.93 ▼3.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0497.24 ▼9.66
Media Library /wp-admin/upload.php3.31 ▲0.0439.66 ▲1.42
Acapela VaaS /wp-admin/options-general.php?page=acapela3.2533.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Acapela VaaS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.17 ▼0.112.06 ▲0.4042.42 ▲1.02
Dashboard /wp-admin2,199 ▲225.57 ▼0.0192.89 ▲0.6142.44 ▲2.06
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0344.99 ▲8.7239.04 ▲5.91
Add New Post /wp-admin/post-new.php1,531 ▲523.20 ▲0.13689.29 ▲48.3950.59 ▼3.77
Media Library /wp-admin/upload.php1,404 ▲14.26 ▼0.09107.86 ▲6.6446.31 ▲0.22
Acapela VaaS /wp-admin/options-general.php?page=acapela8552.0325.2531.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=acapela
    • > Notice in wp-content/plugins/acapela-vaas/acapela-vaas.php+157
    Undefined index: helper
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=acapela
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=acapela
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acapela-vaas/acapela-vaas.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

acapela-vaas/acapela-vaas.php Passed 13 tests

The primary PHP file in "Acapela VaaS" version 1.0.0 is used by WordPress to initiate all plugin functionality
80 characters long description:
Inserts Acapela VaaS Javascript code in the head tag of your Wordpress template.

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
Everything looks great! No dangerous files found in this plugin141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1168141

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected