Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php+43
Methods with the same name as their class will not be constructors in a future version of PHP; Pinterest_Pinboard has a deprecated constructor
Server metrics [RAM: ▼1.87MB] [CPU: ▼58.24ms] Passed 4 tests
Server-side resources used by Pinterest Pinboard Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.34 | 4.75 ▼37.33 |
Dashboard /wp-admin | 2.15 ▼1.20 | 5.53 ▼59.05 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 5.78 ▼44.23 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 8.42 ▼92.36 |
Media Library /wp-admin/upload.php | 2.15 ▼1.09 | 6.10 ▼27.32 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_pinterest-pinboard-widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pinterest Pinboard Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.40 ▲0.12 | 1.71 ▲0.01 | 42.18 ▲5.09 |
Dashboard /wp-admin | 2,209 ▲17 | 4.87 ▼0.22 | 96.78 ▼21.57 | 36.91 ▼8.90 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 38.78 ▲0.76 | 34.50 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.18 ▲5.59 | 613.14 ▼57.21 | 50.85 ▼1.75 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▲0.02 | 93.89 ▼13.83 | 43.46 ▼6.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php+43
Methods with the same name as their class will not be constructors in a future version of PHP; Pinterest_Pinboard has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_pinterest-pinboard-widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
- > PHP Warning
include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php:173
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Settings of the widget under: Appearance > Widgets), #2 (This is the Pinterest Pinboard widget in the sidebar of the Twenty Eleven WordPress theme)
pinterest-pinboard-widget/pinterest-pinboard-widget.php Passed 13 tests
The entry point to "Pinterest Pinboard Widget" version 1.0.7 is a PHP file that has certain tags in its header comment area
59 characters long description:
Add a Pinterest Pinboard widget and shortcode to WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected210 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 55 | 199 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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