Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼33.66ms] Passed 4 tests
A check of server-side resources used by Gp Subtitle for Post, Pages and Custom Type
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.49 ▼6.28 |
Dashboard /wp-admin | 3.05 ▼0.26 | 26.09 ▼26.41 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 24.72 ▼26.05 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 25.70 ▼71.48 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 26.14 ▼10.68 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Gp Subtitle for Post, Pages and Custom Type
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.07 ▼0.65 | 1.66 ▼0.47 | 43.89 ▲3.26 |
Dashboard /wp-admin | 2,228 ▲51 | 5.52 ▼0.14 | 86.89 ▼5.33 | 74.28 ▲30.31 |
Posts /wp-admin/edit.php | 2,130 ▲25 | 1.97 ▼0.01 | 32.95 ▼4.97 | 36.01 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 22.96 ▲0.09 | 737.18 ▲102.52 | 55.33 ▼5.84 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.20 ▼0.03 | 102.63 ▲1.73 | 79.03 ▲35.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/gp-subtitle-for-pages-and-posts/Gp_Subtitle.php+104
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gp-subtitle-for-pages-and-posts/Gp_Subtitle.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gp-subtitle-for-pages-and-posts/GP_public_methods.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gp-subtitle-for-pages-and-posts/admin/GP_admin_settings.php:181
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Requires php: Version not formatted correctly
gp-subtitle-for-pages-and-posts/Gp_Subtitle.php 92% from 13 tests
The principal PHP file in "Gp Subtitle for Post, Pages and Custom Type" v. 2.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gp-subtitle-for-pages-and-posts.php" instead of "Gp_Subtitle.php")
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
There were no executable files found in this plugin287 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 85 | 77 | 265 |
CSS | 1 | 1 | 1 | 21 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 10 | 50.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG images were found in this plugin