Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/prizma/prizma-widget-sidebar.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; Prizma_Widget_Sidebar has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼52.84ms] Passed 4 tests
Analyzing server-side resources used by Prizma
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 6.42 ▼37.36 |
Dashboard /wp-admin | 2.13 ▼1.18 | 5.85 ▼38.78 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.49 ▼41.48 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.46 ▼93.75 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 7.05 ▼26.42 |
Prizma Widget /wp-admin/options-general.php?page=prizma-widget-settings | 2.13 | 6.58 |
Server storage [IO: ▲0.05MB] [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: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_prizma-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Prizma
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 14.45 ▼0.28 | 1.84 ▼0.10 | 39.57 ▲3.22 |
Dashboard /wp-admin | 2,220 ▲29 | 5.88 ▼0.00 | 99.48 ▼12.93 | 38.61 ▼6.52 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.01 ▼0.04 | 36.38 ▼2.52 | 29.67 ▼7.58 |
Add New Post /wp-admin/post-new.php | 6,225 ▲4,711 | 25.82 ▲8.04 | 885.80 ▲278.85 | 62.51 ▲7.99 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.28 ▲0.09 | 110.24 ▲12.67 | 48.02 ▲5.70 |
Prizma Widget /wp-admin/options-general.php?page=prizma-widget-settings | 830 | 2.05 | 23.92 | 28.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/prizma/prizma-widget-sidebar.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; Prizma_Widget_Sidebar has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_prizma-widget
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=prizma-widget-settings
- > Deprecated in wp-content/plugins/prizma/prizma-widget-sidebar.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; Prizma_Widget_Sidebar has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=prizma-widget-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_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 prizma-spotlight-tinymce handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=prizma-widget-settings
- > Notice in wp-content/plugins/prizma/prizma-widget-settings.php+28
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=prizma-widget-settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Prizma_Widget_Sidebar is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=prizma-widget-settings
- > Notice in wp-content/plugins/prizma/prizma-widget-settings.php+47
Undefined index: partnerID
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
Almost there! Just fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/prizma/prizma-widget-mce.php
- > /wp-content/plugins/prizma/prizma-widget-settings.php
- > /wp-content/plugins/prizma/prizma-widget-sidebar.php
- > /wp-content/plugins/prizma/prizma-widget-meta-box.php
- > /wp-content/plugins/prizma/prizma-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
prizma/prizma-widget.php 85% from 13 tests
The entry point to "Prizma" version 2.1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 141 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("prizma.php" instead of "prizma-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin849 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 160 | 48 | 646 |
CSS | 2 | 5 | 0 | 114 |
JavaScript | 2 | 12 | 1 | 89 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 41 | 87.23% |
▷ Public methods | 39 | 82.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 17.02% |
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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/SIDEBAR_TEXT.png | 0.35KB | 0.14KB | ▼ 58.77% |
img/FILMSTRIP.png | 0.22KB | 0.13KB | ▼ 42.08% |
img/SIDEBAR_TEXT_OVER.png | 0.33KB | 0.14KB | ▼ 56.55% |
img/prizma_for_wordpress.png | 6.89KB | 4.39KB | ▼ 36.30% |
img/prizma-spotlight-tinymce-icon.png | 0.34KB | 0.22KB | ▼ 37.22% |