Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/post-author/post_author.php+361
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.68MB] [CPU: ▼56.22ms] Passed 4 tests
This is a short check of server-side resources used by Post Author
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.16 | 6.50 ▼43.64 |
Dashboard /wp-admin | 2.33 ▼0.98 | 7.01 ▼45.48 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 6.29 ▼43.98 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.56 | 5.70 ▼91.78 |
Media Library /wp-admin/upload.php | 2.33 ▼0.90 | 5.87 ▼29.48 |
Post author /wp-admin/options-general.php?page=post-author/post_author.php | 2.33 | 6.42 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
Post_Author_Options |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Author
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲22 | 14.13 ▼0.22 | 1.93 ▲0.32 | 42.69 ▲0.68 |
Dashboard /wp-admin | 2,187 ▲10 | 5.55 ▼0.02 | 84.12 ▼9.31 | 67.99 ▲26.69 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▲0.01 | 37.97 ▼2.63 | 33.55 ▼2.97 |
Add New Post /wp-admin/post-new.php | 6,246 ▲4,720 | 25.82 ▲2.84 | 859.04 ▲192.80 | 154.65 ▲84.66 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.12 ▲0.01 | 100.09 ▼6.20 | 71.64 ▲24.06 |
Post author /wp-admin/options-general.php?page=post-author/post_author.php | 1,247 | 2.02 | 23.09 | 30.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/post-author/post_author.php+361
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- Post_Author_Options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=post-author/post_author.php
- > Deprecated in wp-content/plugins/post-author/post_author.php+361
Array and string offset access syntax with curly braces is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=post-author/post_author.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=post-author/post_author.php
- > User deprecated in wp-includes/functions.php+5453
Function attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-author/post_author.php:1107
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== post-author ===
) - Screenshots: Please add images for these screenshots: #1 (This is what Post Author can look like on your blog.), #2 (Another example with Post Author at the top of the content.), #4 (The admin page of Post Author with the options available.), #5 (The post/page edit section with the Post Author plugin implement.)
post-author/post_author.php 85% from 13 tests
The main file in "Post Author" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("post-author.php" instead of "post_author.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
There were no executable files found in this plugin1,685 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 149 | 81 | 888 |
PO File | 6 | 274 | 349 | 797 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 10 | |
▷ Named functions | 10 | 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
5 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 47.57KB | 46.12KB | ▼ 3.05% |
screenshot-3.png | 20.29KB | 19.08KB | ▼ 5.97% |
screenshot-5.png | 5.23KB | 4.53KB | ▼ 13.35% |
screenshot-4.png | 9.29KB | 9.09KB | ▼ 2.22% |
screenshot-1.png | 32.72KB | 32.03KB | ▼ 2.10% |