Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.86ms] Passed 4 tests
An overview of server-side resources used by (Simply) Guest Author Name
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 39.83 ▼5.25 |
Dashboard /wp-admin | 3.47 ▲0.12 | 46.09 ▼14.51 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.69 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 104.98 ▲10.44 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.45 ▼1.30 |
Guest Author Name /wp-admin/options-general.php?page=guest_author_name | 3.33 | 31.14 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for (Simply) Guest Author Name
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.21 ▼1.17 | 1.55 ▼0.79 | 39.60 ▼18.24 |
Dashboard /wp-admin | 2,225 ▲43 | 5.83 ▲0.95 | 96.47 ▼25.39 | 42.01 ▼1.86 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▲0.01 | 38.61 ▲1.00 | 37.52 ▲3.95 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,737 | 26.01 ▲2.94 | 854.96 ▲164.24 | 58.53 ▲2.58 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▲0.01 | 95.41 ▼11.90 | 42.52 ▼3.89 |
Guest Author Name /wp-admin/options-general.php?page=guest_author_name | 901 | 2.03 | 22.70 | 27.32 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=guest_author_name
- > Notice in wp-content/plugins/guest-author-name/sfly-guest-author-settings.php+229
Trying to access array offset on value of type bool
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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/guest-author-name/sfly-guest-author.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guest-author-name/sfly-guest-author-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guest-author-name/guest-author-notices.php:2
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== guest-author-name ===
) - Screenshots: These screenshots require images: #1 (Override the post Author), #2 (Post with Guest Author), #3 (Settings Page)
guest-author-name/sfly-guest-author.php 85% from 13 tests
The main file in "(Simply) Guest Author Name" v. 4.34 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 290 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("guest-author-name.php" instead of "sfly-guest-author.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 plugin852 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 211 | 405 | 831 |
JavaScript | 1 | 11 | 9 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 2 | 3.64% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 64.74KB | 24.03KB | ▼ 62.88% |
screenshot-2.png | 27.26KB | 8.72KB | ▼ 68.02% |
screenshot-3.png | 24.70KB | 5.84KB | ▼ 76.37% |