Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.89MB] [CPU: ▼61.74ms] Passed 4 tests
This is a short check of server-side resources used by Pluralsight WordPress Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.55 ▼43.83 |
Dashboard /wp-admin | 2.12 ▼1.22 | 7.26 ▼59.74 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 7.55 ▼43.77 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 8.23 ▼99.61 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 5.65 ▼33.19 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_pluralsight_widget |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Pluralsight WordPress Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.23 ▲0.04 | 2.15 ▲0.13 | 44.83 ▲1.03 |
Dashboard /wp-admin | 2,189 ▲12 | 5.61 ▲0.07 | 94.64 ▼8.52 | 43.25 ▲1.80 |
Posts /wp-admin/edit.php | 2,100 ▼5 | 1.99 ▼0.00 | 38.91 ▲2.06 | 37.01 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 20.82 ▼2.06 | 635.25 ▼42.84 | 58.60 ▲11.06 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.13 | 100.28 ▼2.00 | 41.28 ▼3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/pluralsight-widget/public/class-pluralsight-wordpress-widget.php+64
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_pluralsight_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pluralsight-widget/includes/widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The Pluralsight Widget on the Widgets page), #2 (The widget in action!), #3 (An example shortcode usage), #4 (That shortcode in use)
pluralsight-widget/pluralsight-wordpress-widget.php 85% from 13 tests
The main file in "Pluralsight WordPress Widget" v. 1.0.1 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:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pluralsight-widget.php" instead of "pluralsight-wordpress-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected314 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 159 | 267 |
Markdown | 1 | 36 | 0 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 13 | |
▷ Static methods | 4 | 30.77% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected