88% oculus

Code Review | Oculus

WordPress plugin Oculus scored 88% from 54 tests.

About plugin

  • Plugin page: oculus
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.4
  • WordPress version: 5.8.1
  • First release: Dec 21, 2015
  • Latest release: Dec 21, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: potatoooooo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 456 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 gracefully, with no errors

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

Analyzing server-side resources used by Oculus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.65 ▲12.63
Dashboard /wp-admin3.07 ▲0.0146.12 ▲10.34
Posts /wp-admin/edit.php3.12 ▲0.0133.11 ▼9.09
Add New Post /wp-admin/post-new.php5.43 ▲0.0087.32 ▼565.06
Media Library /wp-admin/upload.php3.01 ▲0.0131.04 ▼1.93
Antispam /wp-admin/options-general.php?page=oculus-key-config3.0125.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Oculus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲12616.17 ▲0.758.18 ▼0.6346.97 ▼1.79
Dashboard /wp-admin2,978 ▲475.89 ▼0.23131.04 ▼9.0898.38 ▼5.30
Posts /wp-admin/edit.php2,744 ▲82.69 ▼0.1464.61 ▼1.3982.76 ▼6.81
Add New Post /wp-admin/post-new.php1,673 ▲17519.17 ▲0.35375.57 ▲7.04108.34 ▲8.57
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.03151.87 ▼19.21120.51 ▲0.25
Antispam /wp-admin/options-general.php?page=oculus-key-config1,0992.0555.4555.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/oculus/oculus.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/oculus/views/start.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: spam, comments

oculus/oculus.php 92% from 13 tests

The primary PHP file in "Oculus" version 0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin198 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP58257198

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.50
▷ Minimum class complexity10.00
▷ Maximum class complexity11.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods22100.00%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin