Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/insights/insights.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; WPInsights has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.26ms] Passed 4 tests
This is a short check of server-side resources used by Insights
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.92 ▼36.44 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.00 ▼44.01 |
Posts /wp-admin/edit.php | 2.12 ▼1.25 | 5.90 ▼45.18 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.92 ▼91.39 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 4.96 ▼32.56 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
WPInsights_options |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Insights
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▲0.08 | 1.77 ▼0.26 | 43.93 ▲0.57 |
Dashboard /wp-admin | 2,196 ▲19 | 5.54 ▼0.15 | 104.24 ▲15.44 | 42.87 ▲2.93 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▼0.07 | 37.87 ▼6.31 | 34.20 ▼2.59 |
Add New Post /wp-admin/post-new.php | 6,299 ▲4,773 | 26.05 ▲2.44 | 926.18 ▲261.60 | 58.39 ▲3.00 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.15 ▼0.03 | 96.56 ▼12.46 | 45.71 ▲0.58 |
Insights /wp-admin/insights.php | 26 | 0.42 | 0.08 | 15.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/insights/insights.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; WPInsights has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- WPInsights_options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% 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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/insights/insights.php
- > /wp-content/plugins/insights/insights-ajax.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/insights/insights-options.php on line 15
- > PHP Notice
Undefined variable: imgpath in wp-content/plugins/insights/insights-options.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/insights/insights-options.php:17
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/insights.php
- > Network (severe)
wp-admin/insights.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Screenshots: Please add images for these screenshots: #1 (Searching images on Flickr and adding them), #2 (Searching Youtube videos, add to post), #3 (Adding a Google Map!), #4 (Using Wikipedia), #5 (Searching my Blog and linking to a post)
- Tags: There are too many tags (20 tag instead of maximum 10)
insights/insights.php Passed 13 tests
This is the main PHP file of "Insights" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
120 characters long description:
Insights allows you to quickly search and insert information (links, images, videos, maps, news..) into your blog posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin732 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 114 | 88 | 381 |
PHP | 3 | 164 | 41 | 351 |
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.30 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
16 compressed PNG files occupy 0.29MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/edit.png | 0.63KB | 0.68KB | 0.00% |
img/help.png | 0.97KB | 0.98KB | 0.00% |
screenshot-3.png | 59.24KB | 59.38KB | 0.00% |
screenshot-5.png | 11.81KB | 11.73KB | ▼ 0.64% |
img/twit.png | 0.71KB | 0.80KB | 0.00% |