Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼142.40ms] Passed 4 tests
This is a short check of server-side resources used by Image Teleporter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 42.87 ▲21.08 |
Dashboard /wp-admin | 3.17 ▲0.11 | 42.62 ▼17.85 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 45.56 ▲5.12 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 97.86 ▼562.49 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 39.47 ▲5.64 |
Image Teleporter /wp-admin/options-general.php?page=bml_it | 3.09 | 33.11 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
bml_it_whichimgs |
bml_it_posttypelist |
bml_it_replacesrc |
bml_it_postmetalist |
bml_it_authlist |
bml_it_custtagname |
bml_it_catlist |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Teleporter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.15 ▲0.22 | 8.07 ▼2.25 | 50.68 ▼1.43 |
Dashboard /wp-admin | 2,972 ▲41 | 5.88 ▼0.19 | 140.05 ▼1.03 | 110.16 ▼13.91 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 66.43 ▼4.48 | 93.75 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,501 ▼103 | 18.80 ▼0.02 | 370.39 ▼8.22 | 108.41 ▲1.55 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 4.99 ▼0.04 | 151.61 ▲2.18 | 125.32 ▲1.32 |
Image Teleporter /wp-admin/options-general.php?page=bml_it | 1,467 | 2.10 | 55.42 | 127.46 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- bml_it_postmetalist
- bml_it_custtagname
- bml_it_catlist
- bml_it_whichimgs
- bml_it_posttypelist
- bml_it_authlist
- bml_it_replacesrc
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/image-teleporter/image-teleporter.php on line 29
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-teleporter/image-teleporter.php on line 29
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/image-teleporter/image-teleporter.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
image-teleporter/image-teleporter.php 92% from 13 tests
The primary PHP file in "Image Teleporter" version 1.1.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 313 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin229 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 146 | 820 | 229 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pinterest.png | 1.67KB | 1.36KB | ▼ 18.43% |
images/google.png | 1.35KB | 1.50KB | 0.00% |
images/feed.png | 1.07KB | 1.36KB | 0.00% |
images/youtube.png | 1.72KB | 1.36KB | ▼ 20.73% |
images/twitter.png | 0.64KB | 0.73KB | 0.00% |