78% go-slog

Code Review | Gigaom Slog

WordPress plugin Gigaom Slog scored 78% from 54 tests.

About plugin

  • Plugin page: go-slog
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.6.1
  • WordPress version: 5.9.2
  • First release: Apr 8, 2014
  • Latest release: Apr 9, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: methnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 605 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼282.75ms] Passed 4 tests

An overview of server-side resources used by Gigaom Slog
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.4254.38 ▲18.68
Dashboard /wp-admin3.48 ▲0.0834.65 ▼1.87
Posts /wp-admin/edit.php3.71 ▲0.0786.31 ▲47.45
Add New Post /wp-admin/post-new.php6.95 ▼0.0194.56 ▼1,151.63
Media Library /wp-admin/upload.php3.36 ▲0.0730.30 ▲3.81
View Slog /wp-admin/tools.php?page=go-slog-show3.3124.00

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Checking browser requirements for Gigaom Slog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,758 ▲415.37 ▲0.195.67 ▼0.372.18 ▼0.90
Dashboard /wp-admin2,883 ▲226.08 ▼0.05119.67 ▼29.09158.10 ▼57.07
Posts /wp-admin/edit.php2,697 ▲63.24 ▲0.0063.60 ▲0.64149.02 ▲4.12
Add New Post /wp-admin/post-new.php1,668 ▼8417.38 ▼3.84455.77 ▼0.94171.02 ▼19.78
Media Library /wp-admin/upload.php1,705 ▲75.55 ▲0.01142.58 ▼27.93186.39 ▼18.93
View Slog /wp-admin/tools.php?page=go-slog-show8382.1472.0580.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=go-slog-show
    • > Error in wp-content/plugins/go-slog/components/class-go-slog.php+164
    Uncaught Error: Call to undefined function go_simple_db() in wp-content/plugins/go-slog/components/class-go-slog.php:164
    Stack trace:
    #0 wp-content/plugins/go-slog/components/class-go-slog.php(88): GO_Slog->simple_db()
    #1 wp-content/plugins/go-slog/components/class-go-slog-admin.php(196): GO_Slog->check_domains()
    #2 wp-content/plugins/go-slog/components/class-go-slog-admin.php(97): GO_Slog_Admin->log_query()
    #3 wp-includes/class-wp-hook.php(307): GO_Slog_Admin->show_log()
    #4 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #5 wp-includes/plugin.php(474): WP_Hook->do_action()
    #6 wp-admin/admin.php(259): do_action()
    #7 wp-admin/tools.php(40): require_once('/var/www/wordpr...')
    #8 {main}
    thrown

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 take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/go-slog/components/class-go-slog-admin-table.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GO_Slog' not found in wp-content/plugins/go-slog/components/class-go-slog-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/go-slog/components/class-go-slog.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: logging, amazon simple db, wordpress

go-slog/go-slog.php 92% from 13 tests

The entry point to "Gigaom Slog" version 0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Version: The plugin version was not found

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin558 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP490108508
CSS111042
JavaScript1108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.67
▷ Minimum class complexity13.00
▷ Maximum class complexity39.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin