Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲0.93ms] Passed 4 tests
Server-side resources used by Bang System Logging
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 46.88 ▲1.30 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.43 ▼0.89 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.33 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 97.89 ▲2.20 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 46.47 ▲11.77 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Bang System Logging
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.28 ▼1.11 | 1.83 ▼0.13 | 39.71 ▼5.09 |
Dashboard /wp-admin | 2,211 ▲23 | 4.86 ▼0.96 | 109.54 ▼11.60 | 43.21 ▼4.44 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▼0.09 | 41.03 ▲3.58 | 35.35 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.41 ▲0.48 | 649.94 ▼38.42 | 47.98 ▼11.36 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.25 ▲0.02 | 100.56 ▼14.51 | 44.42 ▼4.27 |
System Logging /wp-admin/bang-syslog-settings.php | 26 | 0.44 | 0.10 | 14.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bang-syslog/show-log.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bang-syslog/bang-syslog-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function bang_syslog_tail_add_message() in wp-content/plugins/bang-syslog/bang-syslog-logging.php:162
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bang-syslog/bang-syslog-time.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/bang-syslog/bang-syslog-tail.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function bang_syslog_tail_add_message() in wp-content/plugins/bang-syslog/bang-syslog-logging.php:162
- > 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 browser errors
- > GET request to /wp-admin/bang-syslog-settings.php
- > Network (severe)
wp-admin/bang-syslog-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: Contributors not specified
- Screenshots: These screenshots do not have images: #1 (The settings page), #2 (A coloured log file)
bang-syslog/main.php 92% from 13 tests
"Bang System Logging" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("bang-syslog.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,027 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 201 | 79 | 924 |
CSS | 4 | 0 | 0 | 63 |
JavaScript | 2 | 0 | 0 | 21 |
Bourne Shell | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bang.png | 3.76KB | 1.22KB | ▼ 67.67% |
images/bang-black-v.png | 3.58KB | 0.72KB | ▼ 79.87% |
images/bang-black.png | 3.57KB | 0.70KB | ▼ 80.44% |
images/bang-widget.png | 0.81KB | 1.11KB | 0.00% |
screenshot-1.png | 103.11KB | 35.97KB | ▼ 65.12% |