Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼296.76ms] Passed 4 tests
An overview of server-side resources used by Add trailing text to title
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 56.61 ▼0.83 |
Dashboard /wp-admin | 3.42 ▲0.02 | 32.20 ▼1.40 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 48.48 ▲12.02 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 96.98 ▼1,184.98 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.47 ▲0.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add trailing text to title: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲59 | 15.83 ▲0.06 | 5.86 ▼0.50 | 2.33 ▼0.27 |
Dashboard /wp-admin | 2,919 ▲61 | 6.13 ▼0.02 | 162.17 ▲25.25 | 165.57 ▼1.35 |
Posts /wp-admin/edit.php | 2,708 ▲15 | 3.24 ▲0.01 | 66.32 ▼0.09 | 181.14 ▼25.59 |
Add New Post /wp-admin/post-new.php | 1,674 ▲13 | 16.54 ▼0.56 | 433.17 ▲6.78 | 200.94 ▲27.45 |
Media Library /wp-admin/upload.php | 1,714 ▲19 | 5.54 ▲0.02 | 154.54 ▲6.87 | 212.67 ▲13.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/add-trailing-text-to-title/add-trailing-text-to-title-plugin/admin/add-trailing-text-to-title-plugin-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-trailing-text-to-title/add-trailing-text-to-title.php:44
- > PHP Notice
Undefined variable: complete_url in wp-content/plugins/add-trailing-text-to-title/add-trailing-text-to-title-plugin/admin/add-trailing-text-to-title-plugin-admin.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== add-trailing-text-to-title ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (/assets/screenshot1.png), #2 (/assets/screenshot2.png)
add-trailing-text-to-title/add-trailing-text-to-title.php Passed 13 tests
The primary PHP file in "Add trailing text to title" version 1.0.0 is used by WordPress to initiate all plugin functionality
57 characters long description:
This plugin adds custom text trailing to the window title
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected65 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 9 | 9 | 65 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot2.png | 15.61KB | 6.03KB | ▼ 61.36% |
assets/screenshot1.png | 19.63KB | 7.96KB | ▼ 59.47% |