Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/iwphone/iwphone.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; iWPhonePlugin has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼56.53ms] Passed 4 tests
A check of server-side resources used by iWPhone
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.14 ▼35.52 |
Dashboard /wp-admin | 2.08 ▼1.23 | 4.93 ▼42.78 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 6.23 ▼61.00 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.63 ▼86.83 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.56 ▼28.54 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for iWPhone
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.74 ▲0.36 | 1.84 ▼0.04 | 43.34 ▼3.70 |
Dashboard /wp-admin | 2,206 ▲27 | 5.01 ▼0.84 | 103.04 ▼14.82 | 41.37 ▼7.17 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.06 | 37.53 ▼9.47 | 32.95 ▼10.79 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 22.73 ▲4.59 | 672.26 ▲56.78 | 63.51 ▲17.97 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▼0.10 | 127.09 ▲17.66 | 48.97 ▲4.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/iwphone/iwphone.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; iWPhonePlugin has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/iwphone/iwphone-by-contentrobot/comments.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iwphone/iwphone-by-contentrobot/functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/404.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/archive.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/single.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/iwphone/iwphone-by-contentrobot/footer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_theme_supports() in wp-content/plugins/iwphone/iwphone.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/iwphone/iwphone-by-contentrobot/header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/iwphone/iwphone-by-contentrobot/page.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please a description for screenshot #3 in iwphone/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== iwphone ===
)
iwphone/iwphone.php 92% from 13 tests
The principal PHP file in "iWPhone" v. 0.3 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 315 characters long)
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
Good job! No executable or dangerous file extensions detected529 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 44 | 34 | 378 |
CSS | 1 | 13 | 38 | 151 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
iwphone-by-contentrobot/images/header-bg.png | 0.21KB | 0.13KB | ▼ 39.27% |
iwphone-by-contentrobot/screenshot.png | 80.98KB | 33.37KB | ▼ 58.80% |
iwphone-by-contentrobot/images/gloss.png | 0.20KB | 0.44KB | 0.00% |