90% voilacollage

Code Review | Voilà!Collage

WordPress plugin Voilà!Collage scored90%from 54 tests.

About plugin

  • Plugin page: voilacollage
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4
  • WordPress version: 6.3.1
  • First release: May 4, 2020
  • Latest release: May 4, 2020
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: voilacollage (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) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.83ms] Passed 4 tests

An overview of server-side resources used by Voilà!Collage
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.40 ▲2.78
Dashboard /wp-admin3.31 ▲0.0147.69 ▲2.05
Posts /wp-admin/edit.php3.36 ▲0.0146.54 ▼0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.41 ▼19.91
Media Library /wp-admin/upload.php3.24 ▲0.0134.84 ▲3.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Voilà!Collage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.081.68 ▼0.1339.96 ▼1.22
Dashboard /wp-admin2,203 ▲155.89 ▼0.01109.45 ▲8.5740.44 ▼3.27
Posts /wp-admin/edit.php2,089 ▼32.18 ▲0.2138.69 ▲1.9335.90 ▼2.23
Add New Post /wp-admin/post-new.php1,530 ▲1623.34 ▲5.75638.81 ▼10.7454.37 ▲3.41
Media Library /wp-admin/upload.php1,388 ▼34.14 ▼0.0595.35 ▼9.0744.32 ▲0.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: collage, gallery, embed, interactive

voilacollage/voilacollage.php Passed 13 tests

The main PHP file in "Voilà!Collage" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Place interactive collages in your posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111621
PHP1101719

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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