Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼7.68ms] Passed 4 tests
Server-side resources used by Scuba Logger
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 59.74 ▲17.22 |
Dashboard /wp-admin | 3.56 ▲0.25 | 59.78 ▲9.25 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 54.33 ▼10.59 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 100.63 ▼35.43 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 39.07 ▲6.05 |
Scuba Logger /wp-admin/options-general.php?page=scuba-logger-options | 3.45 | 33.95 |
Scuba Logger /wp-admin/tools.php?page=ScubaLoggerToolsMenu | 3.45 | 44.76 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_scubalogger |
wp_scubalogger_type_records |
wp_scubalogger_types |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
temp_units |
widget_theysaidso_widget |
depth_units |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Scuba Logger
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.13 ▼0.43 | 1.75 ▼0.04 | 50.04 ▲6.82 |
Dashboard /wp-admin | 2,203 ▲32 | 5.55 ▼0.11 | 116.07 ▼67.72 | 46.58 ▼80.95 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.97 ▼0.05 | 43.67 ▼15.93 | 36.45 ▼18.68 |
Add New Post /wp-admin/post-new.php | 1,534 ▲7 | 23.15 ▲0.23 | 668.79 ▼165.49 | 55.60 ▼7.07 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.16 ▼0.11 | 98.45 ▼22.35 | 45.44 ▼0.02 |
Scuba Logger /wp-admin/options-general.php?page=scuba-logger-options | 872 | 1.99 | 27.23 | 27.50 |
Scuba Logger /wp-admin/tools.php?page=ScubaLoggerToolsMenu | 1,176 | 2.02 | 29.89 | 32.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure failed, leaving 3 tables in the database
- wp_scubalogger_types
- wp_scubalogger_type_records
- wp_scubalogger
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- temp_units
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- depth_units
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/scuba-logger/scubalogger.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== scuba-logger ===
)
scuba-logger/scubalogger.php 92% from 13 tests
The primary PHP file in "Scuba Logger" version 0.1.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("scuba-logger.php" instead of "scubalogger.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
Success! There were no dangerous files found in this plugin1,436 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 139 | 238 | 1,296 |
CSS | 1 | 22 | 0 | 116 |
JavaScript | 1 | 5 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for 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.28 |
Average class complexity | 95.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.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 | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 60.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin