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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.42 | 54.38 ▲18.68 |
Dashboard /wp-admin | 3.48 ▲0.08 | 34.65 ▼1.87 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 86.31 ▲47.45 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.01 | 94.56 ▼1,151.63 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 30.30 ▲3.81 |
View Slog /wp-admin/tools.php?page=go-slog-show | 3.31 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,758 ▲4 | 15.37 ▲0.19 | 5.67 ▼0.37 | 2.18 ▼0.90 |
Dashboard /wp-admin | 2,883 ▲22 | 6.08 ▼0.05 | 119.67 ▼29.09 | 158.10 ▼57.07 |
Posts /wp-admin/edit.php | 2,697 ▲6 | 3.24 ▲0.00 | 63.60 ▲0.64 | 149.02 ▲4.12 |
Add New Post /wp-admin/post-new.php | 1,668 ▼84 | 17.38 ▼3.84 | 455.77 ▼0.94 | 171.02 ▼19.78 |
Media Library /wp-admin/upload.php | 1,705 ▲7 | 5.55 ▲0.01 | 142.58 ▼27.93 | 186.39 ▼18.93 |
View Slog /wp-admin/tools.php?page=go-slog-show | 838 | 2.14 | 72.05 | 80.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 90 | 108 | 508 |
CSS | 1 | 11 | 0 | 42 |
JavaScript | 1 | 1 | 0 | 8 |
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 code | 0.43 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
There were not PNG files found in your plugin