74% scuba-logger

Code Review | Scuba Logger

WordPress plugin Scuba Logger scored74%from 54 tests.

About plugin

  • Plugin page: scuba-logger
  • Plugin version: 0.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Mar 13, 2014
  • Latest release: May 6, 2014
  • Number of updates: 15
  • Update frequency: every 3.7 days
  • Top authors: wp_aengus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,162 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2459.74 ▲17.22
Dashboard /wp-admin3.56 ▲0.2559.78 ▲9.25
Posts /wp-admin/edit.php3.67 ▲0.3154.33 ▼10.59
Add New Post /wp-admin/post-new.php6.14 ▲0.25100.63 ▼35.43
Media Library /wp-admin/upload.php3.48 ▲0.2539.07 ▲6.05
Scuba Logger /wp-admin/options-general.php?page=scuba-logger-options3.4533.95
Scuba Logger /wp-admin/tools.php?page=ScubaLoggerToolsMenu3.4544.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.13 ▼0.431.75 ▼0.0450.04 ▲6.82
Dashboard /wp-admin2,203 ▲325.55 ▼0.11116.07 ▼67.7246.58 ▼80.95
Posts /wp-admin/edit.php2,111 ▲111.97 ▼0.0543.67 ▼15.9336.45 ▼18.68
Add New Post /wp-admin/post-new.php1,534 ▲723.15 ▲0.23668.79 ▼165.4955.60 ▼7.07
Media Library /wp-admin/upload.php1,411 ▲114.16 ▼0.1198.45 ▼22.3545.44 ▼0.02
Scuba Logger /wp-admin/options-general.php?page=scuba-logger-options8721.9927.2327.50
Scuba Logger /wp-admin/tools.php?page=ScubaLoggerToolsMenu1,1762.0229.8932.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP31392381,296
CSS1220116
JavaScript15024

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 code0.28
Average class complexity95.50
▷ Minimum class complexity4.00
▷ Maximum class complexity187.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods1840.00%
▷ Protected methods00.00%
▷ Private methods2760.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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