Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼296.95ms] Passed 4 tests
Server-side resources used by Custom Title
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 51.10 ▼1.07 |
Dashboard /wp-admin | 3.41 ▲0.01 | 31.47 ▼1.39 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.62 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.08 | 91.78 ▼1,184.70 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.56 ▲2.25 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Title
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.89 ▲0.11 | 5.86 ▲0.35 | 2.34 ▲0.34 |
Dashboard /wp-admin | 2,888 ▲30 | 6.02 ▼0.04 | 116.26 ▼25.20 | 155.94 ▼14.89 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▲0.00 | 61.21 ▼6.68 | 134.24 ▼6.84 |
Add New Post /wp-admin/post-new.php | 1,593 ▼68 | 17.33 ▲0.87 | 450.04 ▲38.11 | 162.63 ▲7.23 |
Media Library /wp-admin/upload.php | 1,689 ▼9 | 5.53 ▲0.02 | 140.43 ▲3.20 | 229.51 ▲47.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-title/custom_heading.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tested up to: Invalid plugin version format
custom-title/custom_heading.php 92% from 13 tests
Analyzing the main PHP file in "Custom Title" version 2.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-title.php" instead of "custom_heading.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin57 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 10 | 57 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 4 | |
▷ Named functions | 4 | 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
PNG images were not found in this plugin