88% acapela-vaas

Code Review | Acapela VaaS

WordPress plugin Acapela VaaS scored 88% 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: 5.9.2
  • 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 / 452 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Acapela VaaS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0458.18 ▲11.90
Dashboard /wp-admin3.43 ▲0.0234.06 ▲1.29
Posts /wp-admin/edit.php3.66 ▲0.0238.56 ▲0.85
Add New Post /wp-admin/post-new.php6.91 ▼0.0699.71 ▼1,183.30
Media Library /wp-admin/upload.php3.32 ▲0.0223.84 ▼6.31
Acapela VaaS /wp-admin/options-general.php?page=acapela3.2621.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Acapela VaaS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲5215.94 ▲0.167.53 ▲1.722.67 ▲0.09
Dashboard /wp-admin2,891 ▲306.11 ▼0.06129.83 ▲0.26163.23 ▲2.28
Posts /wp-admin/edit.php2,662 ▼323.23 ▼0.0064.02 ▲1.60135.30 ▼7.35
Add New Post /wp-admin/post-new.php1,664 ▲316.36 ▼0.67412.32 ▼18.39155.89 ▼3.43
Media Library /wp-admin/upload.php1,706 ▲85.47 ▼0.02140.00 ▼2.01186.48 ▼4.19
Acapela VaaS /wp-admin/options-general.php?page=acapela1,0522.4154.60124.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 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

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/acapela-vaas/acapela-vaas.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

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

The entry point to "Acapela VaaS" version 1.0.0 is a PHP file that has certain tags in its header comment area
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin141 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1168141

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin