Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.18ms] Passed 4 tests
An overview of server-side resources used by GNU Terry Pratchett
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 47.62 ▲8.32 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.57 ▼1.73 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.55 ▲2.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.26 ▼9.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.70 ▲4.37 |
GNU Terry Pratchett /wp-admin/options-general.php?page=gnu-terry-pratchett | 3.22 | 30.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GNU Terry Pratchett
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 14.80 ▲0.52 | 1.98 ▲0.26 | 42.72 ▲1.67 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.92 | 107.38 ▲2.62 | 41.99 ▲0.87 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.03 | 33.89 ▼0.14 | 33.85 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.45 ▼5.83 | 669.83 ▼38.22 | 54.24 ▼1.33 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.00 | 94.06 ▼8.36 | 44.35 ▼1.42 |
GNU Terry Pratchett /wp-admin/options-general.php?page=gnu-terry-pratchett | 780 | 2.03 | 25.31 | 24.68 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/gnu-terry-pratchett/options.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== gnu-terry-pratchett ===
)
gnu-terry-pratchett/gnu-terry-pratchett.php Passed 13 tests
"GNU Terry Pratchett" version 0.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Adds an X-Clacks-Overhead HTTP header set to 'GNU Terry Pratchett' on all non-admin pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin88 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 30 | 88 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin