Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼14.94ms] Passed 4 tests
A check of server-side resources used by OBERON - WP Add-in
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.85 ▼0.07 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.06 ▲5.19 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.20 ▼1.69 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 33.63 ▼60.55 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.65 ▲2.56 |
OBERON - WP Add-in /wp-admin/options-general.php?page=owpa-settings | 3.34 | 41.44 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_owpa_checkinwidget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OBERON - WP Add-in
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.01 ▼0.72 | 1.72 ▼0.10 | 43.10 ▲4.79 |
Dashboard /wp-admin | 2,205 ▲28 | 5.61 ▼0.05 | 92.05 ▼0.97 | 45.75 ▲5.54 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.01 | 37.29 ▼7.58 | 32.56 ▼8.28 |
Add New Post /wp-admin/post-new.php | 1,544 ▲7 | 23.17 ▲5.02 | 587.42 ▼32.90 | 49.34 ▼51.50 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▼0.04 | 97.71 ▼5.20 | 42.16 ▼2.71 |
OBERON - WP Add-in /wp-admin/options-general.php?page=owpa-settings | 952 | 2.05 | 25.01 | 40.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_owpa_checkinwidget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 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 50% 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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/oberon-wpaddin/owpa_plugin.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oberon-wpaddin/widgets/owpa_check_in_widget.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/oberon-wpaddin/owpa_restcontroller.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires php: The plugin version is formatted incorrectly
oberon-wpaddin/owpa_plugin.php 92% from 13 tests
The main PHP script in "OBERON - WP Add-in" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("oberon-wpaddin.php" instead of "owpa_plugin.php")
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
Good job! No executable or dangerous file extensions detected2,052 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 152 | 78 | 1,042 |
PHP | 7 | 275 | 355 | 843 |
CSS | 2 | 37 | 4 | 167 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 3 | 5.66% |
▷ Public methods | 40 | 75.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 24.53% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 4 | 28.57% |
▷ Class constants | 10 | 71.43% |
▷ Public constants | 10 | 100.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 images were found in this plugin