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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.65 ▲12.63 |
Dashboard /wp-admin | 3.07 ▲0.01 | 46.12 ▲10.34 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 33.11 ▼9.09 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 87.32 ▼565.06 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.04 ▼1.93 |
Antispam /wp-admin/options-general.php?page=oculus-key-config | 3.01 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲126 | 16.17 ▲0.75 | 8.18 ▼0.63 | 46.97 ▼1.79 |
Dashboard /wp-admin | 2,978 ▲47 | 5.89 ▼0.23 | 131.04 ▼9.08 | 98.38 ▼5.30 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.69 ▼0.14 | 64.61 ▼1.39 | 82.76 ▼6.81 |
Add New Post /wp-admin/post-new.php | 1,673 ▲175 | 19.17 ▲0.35 | 375.57 ▲7.04 | 108.34 ▲8.57 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.03 | 151.87 ▼19.21 | 120.51 ▲0.25 |
Antispam /wp-admin/options-general.php?page=oculus-key-config | 1,099 | 2.05 | 55.45 | 55.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 82 | 57 | 198 |
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 code | 0.22 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 22 | 100.00% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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