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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲3.08ms] Passed 4 tests
This is a short check of server-side resources used by Octavius Rocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 53.35 ▲8.24 |
Dashboard /wp-admin | 3.46 ▲0.16 | 57.08 ▼17.62 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 58.96 ▲5.06 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 112.16 ▲16.63 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 52.28 ▲16.66 |
Dashboard /wp-admin/admin.php?page=octavius-rocks | 3.38 | 47.37 |
Settings /wp-admin/admin.php?page=octavius-rocks-settings | 3.44 | 52.79 |
Server storage [IO: ▲11.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 137 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_octavius_rocks_queries |
wp_octavius_rocks_pageviews |
wp_octavius_rocks_taxonomy_term_views |
New WordPress options |
---|
widget_octavius_rocks_most_read |
widget_recent-posts |
octavius_rocks_query_cache_update_last_run |
octavius_rocks_pageviews_cache_last_import |
octavius-rocks_data_version |
_octavius_rocks_fetch_config_last_run |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Octavius Rocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲95 | 13.55 ▼0.85 | 11.86 ▲10.06 | 45.64 ▼0.67 |
Dashboard /wp-admin | 2,250 ▲44 | 4.84 ▼0.02 | 107.47 ▼9.56 | 44.03 ▼7.45 |
Posts /wp-admin/edit.php | 2,193 ▲104 | 4.79 ▲2.78 | 92.12 ▲53.53 | 35.63 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,733 ▲205 | 27.99 ▲4.91 | 713.59 ▲58.77 | 31.45 ▼19.69 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.24 ▲0.00 | 99.98 ▼4.33 | 43.05 ▲0.85 |
Dashboard /wp-admin/admin.php?page=octavius-rocks | 1,163 | 6.07 | 109.26 | 38.50 |
Settings /wp-admin/admin.php?page=octavius-rocks-settings | 913 | 4.36 | 54.48 | 34.51 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_octavius_rocks_queries
- wp_octavius_rocks_pageviews
- wp_octavius_rocks_taxonomy_term_views
- This plugin did not uninstall successfully, leaving 11 options in the database
- octavius-rocks_data_version
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- octavius_rocks_query_cache_update_last_run
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- _octavius_rocks_fetch_config_last_run
- widget_octavius_rocks_most_read
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/octavius-rocks/templates/blockx__octavius-rocks--most-read.php
- > /wp-content/plugins/octavius-rocks/templates/blockx__octavius-rocks--most-read__editor.php
- > /wp-content/plugins/octavius-rocks/parts/octavius-admin-pageviews.php
- > /wp-content/plugins/octavius-rocks/parts/octavius-settings-tabs.php
- 37× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/octavius-rocks/parts/octavius-overview.php:9
- > PHP Notice
Undefined variable: args in wp-content/plugins/octavius-rocks/templates/most-read-widget.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/octavius-rocks/lib/octavius-admin-php/tests/server/AdminTest.php:18
- > PHP Notice
Undefined variable: query in wp-content/plugins/octavius-rocks/templates/most-read-widget.php on line 17
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/octavius-rocks/templates/blockx__octavius-rocks--most-read__editor.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/octavius-rocks/lib/octavius-admin-php/tests/serverless/OQLTest.php:20
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/octavius-rocks/parts/octavius-settings-tabs.php on line 12
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/octavius-rocks/templates/blockx__octavius-rocks--most-read.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/octavius-rocks/lib/octavius-admin-php/tests/serverless/JavaScriptTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Blocks\\_BlockType' not found in wp-content/plugins/octavius-rocks/classes/BlockX/MostReadBlock.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=octavius-rocks
- > Network (severe)
https://service.octavius.rocks/config/ - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=octavius-rocks
- > Console-api (severe) in unknown
/wp-content/plugins/octavius-rocks//dist/adminRocks.js?ver=53d85523e51d0a2f28b4 0:299182 i
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (Octavius Service) image missing
octavius-rocks/octavius-client.php 85% from 13 tests
This is the main PHP file of "Octavius Rocks" version 3.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.0")
- Main file name: Name the main plugin file the same as the plugin slug ("octavius-rocks.php" instead of "octavius-client.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,405 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 1,669 | 2,835 | 6,949 |
PO File | 1 | 163 | 203 | 369 |
Markdown | 1 | 28 | 0 | 68 |
JavaScript | 5 | 0 | 4 | 13 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 3 | 3.61% |
▷ Concrete classes | 80 | 96.39% |
▷ Final classes | 10 | 12.50% |
Methods | 540 | |
▷ Static methods | 51 | 9.44% |
▷ Public methods | 510 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 30 | 5.56% |
Functions | 37 | |
▷ Named functions | 7 | 18.92% |
▷ Anonymous functions | 30 | 81.08% |
Constants | 131 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 131 | 100.00% |
▷ Public constants | 131 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin