Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼2.45MB] [CPU: ▼345.51ms] Passed 4 tests
This is a short check of server-side resources used by Get Pinterest Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼1.59 | 4.71 ▼43.93 |
Dashboard /wp-admin | 1.94 ▼1.47 | 3.92 ▼30.47 |
Posts /wp-admin/edit.php | 1.94 ▼1.70 | 4.48 ▼33.88 |
Add New Post /wp-admin/post-new.php | 1.94 ▼5.03 | 4.43 ▼1,273.74 |
Media Library /wp-admin/upload.php | 1.94 ▼1.36 | 3.77 ▼22.52 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Get Pinterest Feed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.87 ▲0.20 | 5.84 ▼0.79 | 2.30 ▼0.18 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.07 | 123.71 ▼17.00 | 156.08 ▼12.27 |
Posts /wp-admin/edit.php | 2,685 ▼9 | 3.24 ▼0.00 | 61.70 ▼0.64 | 140.76 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,661 ▼99 | 16.10 ▼6.55 | 434.87 ▲7.08 | 157.72 ▼3.54 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.47 ▲0.00 | 136.52 ▼19.18 | 181.57 ▼9.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5768
wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the imagesloaded handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/get-pinterest-feed/GetPinterestFeed.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/get-pinterest-feed/GetPinterestFeed.php:19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/get-pinterest-feed/GetPinterestFeed.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Code written), #2 (Looks like this)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== get-pinterest-feed ===
)
get-pinterest-feed/GetPinterestFeed.php 85% from 13 tests
"Get Pinterest Feed" version 0.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Name the main plugin file the same as the plugin slug ("get-pinterest-feed.php" instead of "GetPinterestFeed.php")
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
Good job! No executable or dangerous file extensions detected135 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 11 | 131 |
JavaScript | 2 | 0 | 9 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ 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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 1.31MB with 1.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.24KB | 4.25KB | ▼ 80.87% |
screenshot-2.png | 1,320.53KB | 358.03KB | ▼ 72.89% |