Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.66ms] Passed 4 tests
A check of server-side resources used by i2Clipart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.34 ▼1.39 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.77 ▼14.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 41.45 ▼3.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 78.45 ▼16.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.28 ▼4.47 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for i2Clipart
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.73 ▲0.36 | 2.13 ▲0.32 | 46.16 ▲0.48 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.01 | 112.04 ▲4.29 | 41.39 ▲1.47 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 34.02 ▼4.26 | 32.18 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 18.05 ▲0.36 | 604.77 ▼77.77 | 52.29 ▼6.46 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.26 ▲0.06 | 94.03 ▼12.94 | 43.20 ▼5.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 output text when accessed directly:
- > /wp-content/plugins/i2clipart/plugin/search.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: query in wp-content/plugins/i2clipart/plugin/search.php on line 5
- > PHP Notice
Undefined index: url in wp-content/plugins/i2clipart/plugin/search.php on line 7
- > PHP Notice
Undefined index: limit in wp-content/plugins/i2clipart/plugin/search.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i2clipart/i2clipart.php:52
- > PHP Notice
Undefined index: page in wp-content/plugins/i2clipart/plugin/search.php on line 4
- > PHP Notice
Undefined index: key in wp-content/plugins/i2clipart/plugin/search.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: pictures, graphics, images, royalty free, vector images...
i2clipart/i2clipart.php Passed 13 tests
The principal PHP file in "i2Clipart" v. 1.0 is loaded by WordPress automatically on each request
110 characters long description:
TinyMCE plugin to search and insert royalty free public domain images from i2clipart.com to your page or post.
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
There were no executable files found in this plugin825 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 104 | 52 | 494 |
CSS | 1 | 0 | 0 | 273 |
HTML | 1 | 4 | 1 | 30 |
PHP | 2 | 10 | 26 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/img/logo.png | 3.66KB | 2.28KB | ▼ 37.84% |
plugin/img/i2clipart.png | 0.92KB | 1.18KB | 0.00% |