Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/cancanit-review-widget/cancanit-review-widget.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; CRWidget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.72ms] Passed 4 tests
An overview of server-side resources used by CancanIT Review Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.41 ▼30.83 |
Dashboard /wp-admin | 2.12 ▼1.23 | 5.66 ▼52.66 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.99 ▼40.50 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.42 ▼82.90 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.70 ▼26.12 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_cancanit-widget |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CancanIT Review Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▼0.22 | 1.62 ▲0.07 | 38.26 ▼5.06 |
Dashboard /wp-admin | 2,198 ▲24 | 5.51 ▼0.15 | 81.80 ▼3.87 | 38.33 ▼0.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.00 | 38.97 ▲1.69 | 36.98 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 23.01 ▼0.06 | 681.08 ▲25.14 | 53.04 ▼3.75 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.26 ▲0.07 | 102.30 ▲3.80 | 45.77 ▲2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/cancanit-review-widget/cancanit-review-widget.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; CRWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_cancanit-widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Screenshot Options), #2 (Screenshot Widget)
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
cancanit-review-widget/cancanit-review-widget.php 92% from 13 tests
The main PHP file in "CancanIT Review Widget" ver. 1... adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin160 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 52 | 145 |
CSS | 3 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widprev_da.png | 2.13KB | 2.09KB | ▼ 1.74% |
widstsp.png | 6.27KB | 3.48KB | ▼ 44.48% |
widprev_de.png | 2.38KB | 2.34KB | ▼ 1.72% |
screenshot-2.png | 2.28KB | 2.25KB | ▼ 1.67% |
widhead.png | 0.84KB | 0.79KB | ▼ 6.05% |