Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/insert-this-intelligent-content-inserts/insertthis.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; ici_inserts_widget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼58.76ms] Passed 4 tests
Server-side resources used by Insert This! Content Inserts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 4.26 ▼38.42 |
Dashboard /wp-admin | 2.15 ▼1.15 | 6.50 ▼50.82 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 7.44 ▼45.50 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 6.82 ▼100.30 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 4.83 ▼27.23 |
Tags /wp-admin/edit-tags.php?taxonomy=inserts_tag&post_type=inserts | 2.15 | 6.36 |
Types /wp-admin/edit-tags.php?taxonomy=inserts_type&post_type=inserts | 2.15 | 6.80 |
Inserts /wp-admin/edit.php?post_type=inserts | 2.15 | 6.03 |
Add New /wp-admin/post-new.php?post_type=inserts | 2.15 | 6.30 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_ici_inserts_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Insert This! Content Inserts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.17 ▼0.07 | 1.66 ▲0.00 | 40.51 ▼2.28 |
Dashboard /wp-admin | 2,217 ▲43 | 5.51 ▼0.10 | 94.99 ▲2.20 | 65.30 ▲17.88 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.99 ▼0.02 | 37.83 ▼2.13 | 33.13 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,708 ▲179 | 22.32 ▼0.76 | 610.43 ▼6.64 | 45.00 ▼4.66 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.14 ▼0.07 | 110.14 ▲11.27 | 45.91 ▲5.55 |
Tags /wp-admin/edit-tags.php?taxonomy=inserts_tag&post_type=inserts | 1,283 | 2.12 | 30.82 | 31.82 |
Types /wp-admin/edit-tags.php?taxonomy=inserts_type&post_type=inserts | 1,311 | 2.27 | 28.94 | 33.13 |
Inserts /wp-admin/edit.php?post_type=inserts | 1,177 | 1.92 | 32.98 | 28.94 |
Add New /wp-admin/post-new.php?post_type=inserts | 2,405 | 7.67 | 171.76 | 130.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/insert-this-intelligent-content-inserts/insertthis.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; ici_inserts_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_ici_inserts_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=inserts
- > Deprecated in wp-content/plugins/insert-this-intelligent-content-inserts/insertthis.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; ici_inserts_widget has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=inserts
- > Deprecated in wp-content/plugins/insert-this-intelligent-content-inserts/insertthis.php+121
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=inserts
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ici_inserts_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/edit.php?post_type=inserts
- > Notice in wp-content/plugins/insert-this-intelligent-content-inserts/insertthis.php+365
Trying to get property 'label' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=inserts
- > Notice in wp-includes/class-walker-category-dropdown.php+76
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/edit.php?post_type=inserts
- > Notice in wp-includes/class-walker-category-dropdown.php+65
Trying to get property 'name' of non-object
- > GET request to /wp-admin/edit.php?post_type=inserts
- > Notice in wp-includes/class-walker-category-dropdown.php+82
Trying to get property 'count' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/insert-this-intelligent-content-inserts/insertthis.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Donate link: Invalid URI found ("none!")
- Screenshots: Screenshot #1 (none :-() image required
insert-this-intelligent-content-inserts/insertthis.php 92% from 13 tests
The main file in "Insert This! Content Inserts" v. 1.3.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 ("insert-this-intelligent-content-inserts.php" instead of "insertthis.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin307 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 45 | 307 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ 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 | 15 | |
▷ Named functions | 15 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
images/light-bulb.png | 1.52KB | 0.74KB | ▼ 51.19% |
images/light-bulb-gray.png | 1.50KB | 0.75KB | ▼ 50.29% |