Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/author-box-2/authorbox.php+41
Function create_function() is deprecated
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.78ms] Passed 4 tests
This is a short check of server-side resources used by Author Box Reloaded
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.50 ▼8.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.08 ▼5.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.32 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.91 ▼0.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.22 ▼0.68 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Author Box Reloaded
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.33 ▼0.31 | 1.80 ▲0.09 | 42.29 ▼2.74 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.00 | 91.61 ▼0.53 | 40.05 ▲1.26 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 40.55 ▲3.62 | 34.48 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.25 | 696.71 ▲17.87 | 64.73 ▲4.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.04 | 110.22 ▲3.10 | 47.77 ▲0.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/author-box-2/authorbox.php:32
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/author-box-2/authorbox-init.php:10
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The Author Box Reloaded in a blog using LTR language.), #2 (The Author Box Reloaded in a blog using RTL language (Persian).), #3 (The modified User Profile page with some social networks available.), #4 (Now Author Box Reloaded is at the user's panel and not on Settings panel. Makes much more sense to end user.), #5 (More options, more versatile.), #6 (Using Wordpress Plugin Framework Reloaded turns access to help and other stuff much easier and makes admin interface more usable.), #7 (Global view of the new admin interface.), #8 (`External Contacts`. Now moved to [Author Box Reloaded Pack](http://wordpress.org/extend/plugins/author-box-reloaded-pack/).)
author-box-2/authorbox.php 85% from 13 tests
Analyzing the main PHP file in "Author Box Reloaded" version 2.0.4.2
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("author-box-2.php" instead of "authorbox.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin625 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 75 | 291 |
PO File | 4 | 80 | 104 | 225 |
CSS | 3 | 35 | 66 | 109 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 2 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.62MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 56.87KB | 25.97KB | ▼ 54.33% |
images/globe.png | 0.90KB | 1.01KB | 0.00% |
images/ipublicis-logo-32.png | 1.98KB | 1.56KB | ▼ 20.81% |
screenshot-1.png | 117.74KB | 39.18KB | ▼ 66.72% |
screenshot-7.png | 100.86KB | 32.76KB | ▼ 67.52% |