Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/sm-cpt-sidebar-widget-displays/sm-cpt-sidebar-widget-displays.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; Display_CTPs_Widget has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼53.74ms] Passed 4 tests
Analyzing server-side resources used by SM CPT Sidebar Widget Displays
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 8.14 ▼35.92 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.19 ▼46.82 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.33 ▼43.35 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 8.64 ▼88.85 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 4.98 ▼32.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_display_cpts |
Browser metrics Passed 4 tests
An overview of browser requirements for SM CPT Sidebar Widget Displays
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.73 ▲0.54 | 1.94 ▲0.10 | 43.42 ▼4.07 |
Dashboard /wp-admin | 2,186 ▲6 | 5.50 ▼0.17 | 96.24 ▲5.13 | 43.83 ▼1.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 40.39 ▲3.42 | 35.20 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.33 ▼4.85 | 607.66 ▼83.85 | 66.17 ▲11.05 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.01 | 98.99 ▼12.54 | 44.21 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/sm-cpt-sidebar-widget-displays/sm-cpt-sidebar-widget-displays.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; Display_CTPs_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_display_cpts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sm-cpt-sidebar-widget-displays/sm-cpt-sidebar-widget-displays.php:223
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Example of the widget in a sidebar.), #2 (Example of a the widget on a website, after styling with custom CSS.)
sm-cpt-sidebar-widget-displays/sm-cpt-sidebar-widget-displays.php Passed 13 tests
"SM CPT Sidebar Widget Displays" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Lists all pages in site in admin
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
No dangerous file extensions were detected148 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 59 | 148 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 14.71KB | 15.60KB | 0.00% |
screenshot-1.png | 9.43KB | 9.78KB | 0.00% |