74% holocam

Code Review | holocam.io

WordPress plugin holocam.io scored 74% from 54 tests.

About plugin

  • Plugin page: holocam
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.5
  • WordPress version: 5.8.1
  • First release: Jul 4, 2016
  • Latest release: Sep 16, 2016
  • Number of updates: 13
  • Update frequency: every 29.9 days
  • Top authors: vadasz01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 534 total downloads

Benchmarks

Plugin footprint 65% 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.15MB] [CPU: ▼165.91ms] Passed 4 tests

This is a short check of server-side resources used by holocam.io
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2539.12 ▲16.67
Dashboard /wp-admin3.19 ▲0.1442.37 ▼6.58
Posts /wp-admin/edit.php3.30 ▲0.2048.94 ▲4.57
Add New Post /wp-admin/post-new.php5.55 ▲0.1296.81 ▼669.28
Media Library /wp-admin/upload.php3.13 ▲0.1338.92 ▲7.66
Panorama Images /wp-admin/edit.php?post_type=holocamimage3.1842.57
Add New /wp-admin/post-new.php?post_type=holocamimage3.2251.47

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 2 new options
New tables
wp_hcapikey
New WordPress options
hc_db_version
holocam_zipdel

Browser metrics Passed 4 tests

Checking browser requirements for holocam.io
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲16716.11 ▲0.3011.09 ▼1.2646.82 ▼4.19
Dashboard /wp-admin3,019 ▲825.96 ▼0.03137.63 ▼24.02112.75 ▼2.82
Posts /wp-admin/edit.php2,810 ▲712.73 ▲0.0265.43 ▼2.6791.38 ▼11.78
Add New Post /wp-admin/post-new.php1,705 ▲20519.15 ▲0.40376.25 ▲4.79109.03 ▼4.74
Media Library /wp-admin/upload.php1,862 ▲405.04 ▲0.02143.52 ▼9.52114.99 ▼16.79
Panorama Images /wp-admin/edit.php?post_type=holocamimage1,4972.6362.0883.82
Add New /wp-admin/post-new.php?post_type=holocamimage2,6637.72198.76143.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_hcapikey
  • Zombie WordPress options were found after uninstall: 2 options
    • hc_db_version
    • holocam_zipdel

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/holocam/holocam.php
    • > /wp-content/plugins/holocam/apikey.php
    • > /wp-content/plugins/holocam/posttype.php
    • > /wp-content/plugins/holocam/hc_attachmentbox.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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === holocam === )
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

holocam/holocam.php Passed 13 tests

This is the main PHP file of "holocam.io" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Panorama images upload for Holocam

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,084 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP48851519
JavaScript100486
PO File1242766
CSS12113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions26
▷ Named functions26100.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