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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.78ms] Passed 4 tests
Analyzing server-side resources used by Border Image Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.36 ▼0.17 |
Dashboard /wp-admin | 3.35 ▲0.05 | 53.46 ▲0.39 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.88 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.44 ▼9.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.43 ▲7.72 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Border Image Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲242 | 14.96 ▲0.70 | 1.94 ▲0.32 | 44.03 ▼0.57 |
Dashboard /wp-admin | 2,380 ▲200 | 6.45 ▲0.81 | 114.88 ▲15.57 | 101.07 ▲56.93 |
Posts /wp-admin/edit.php | 2,315 ▲215 | 3.68 ▲1.71 | 56.43 ▲20.39 | 65.70 ▲28.17 |
Add New Post /wp-admin/post-new.php | 1,719 ▲184 | 23.21 ▲5.12 | 666.36 ▲51.97 | 36.73 ▼29.91 |
Media Library /wp-admin/upload.php | 1,434 ▲37 | 4.58 ▲0.41 | 86.82 ▼15.47 | 85.65 ▲41.44 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/border-image/inc/install.php
- > /wp-content/plugins/border-image/template/dashboard.php
- 3× 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/border-image/inc/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/border-image/border_image.php:13
- > PHP Warning
Use of undefined constant BRDIMG_URL - assumed 'BRDIMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/border-image/template/dashboard.php on line 270
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Contributors: Plugin contributors not specified
border-image/border_image.php 92% from 13 tests
The main file in "Border Image Plugin" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("border-image.php" instead of "border_image.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin15,559 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 1,940 | 170 | 9,158 |
JavaScript | 4 | 1,219 | 537 | 5,394 |
SVG | 4 | 0 | 3 | 639 |
PHP | 5 | 21 | 13 | 368 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 47.40KB | 20.16KB | ▼ 57.46% |
assets/icon-128x128.png | 2.03KB | 1.96KB | ▼ 3.28% |
inc/assets/img/picture.png | 8.12KB | 3.17KB | ▼ 60.96% |
inc/images/border_image.png | 0.97KB | 0.63KB | ▼ 35.42% |
inc/assets/img/logo.png | 7.96KB | 4.03KB | ▼ 49.40% |