Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php+303
Function create_function() is deprecated
Server metrics [RAM: ▼1.75MB] [CPU: ▼198.62ms] Passed 4 tests
Server-side resources used by Pinterest RSS Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼0.83 | 5.57 ▼19.15 |
Dashboard /wp-admin | 1.90 ▼1.15 | 5.73 ▼53.67 |
Posts /wp-admin/edit.php | 1.90 ▼1.20 | 5.94 ▼45.65 |
Add New Post /wp-admin/post-new.php | 1.90 ▼3.53 | 8.56 ▼663.55 |
Media Library /wp-admin/upload.php | 1.90 ▼1.10 | 8.27 ▼31.59 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_pinterest_rss_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Pinterest RSS Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,812 ▲175 | 16.39 ▲0.50 | 17.86 ▲7.58 | 52.57 ▲3.09 |
Dashboard /wp-admin | 2,967 ▲33 | 5.85 ▼0.16 | 152.86 ▼12.46 | 124.43 ▼2.70 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 74.96 ▲3.22 | 100.77 ▲7.56 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.79 ▼1.66 | 422.42 ▼4.24 | 114.93 ▼8.48 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.00 | 172.29 ▲0.79 | 132.50 ▲3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php+303
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 1 option in the database
- widget_pinterest_rss_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The widget settings), #2 (Widget on the front end with 9 Pins and titles displaying), #3 (Choose one of four buttons (or none) to display beneath the list of Pins)
pinterest-rss-widget/pinterest-rss-widget.php 92% from 13 tests
The main PHP script in "Pinterest RSS Widget" version 2.3.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 274 characters long)
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
Success! There were no dangerous files found in this plugin251 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 32 | 220 |
CSS | 1 | 5 | 1 | 29 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 8.00 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin