Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.84ms] Passed 4 tests
An overview of server-side resources used by PG Context Sidebar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 47.57 ▲3.31 |
Dashboard /wp-admin | 3.42 ▲0.11 | 53.27 ▼2.36 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.55 ▼11.54 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 90.39 ▼16.76 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 48.58 ▲11.05 |
PG Context Sidebar /wp-admin/options-general.php?page=pg-context-sidebar/pg-context-sidebar.php | 3.29 | 33.14 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_pgeek_cs_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
pgeek_cs_options |
pgeek_cs_option_ver |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PG Context Sidebar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.24 ▼0.32 | 2.28 ▲0.45 | 51.42 ▲1.05 |
Dashboard /wp-admin | 2,197 ▲20 | 5.65 ▲0.13 | 86.81 ▼6.74 | 40.14 ▼3.07 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.01 ▲0.02 | 59.69 ▲22.78 | 42.26 ▲6.00 |
Add New Post /wp-admin/post-new.php | 6,317 ▲4,789 | 18.95 ▼4.14 | 914.76 ▲245.93 | 54.03 ▼0.47 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.25 ▲0.05 | 104.41 ▼32.30 | 44.35 ▼9.49 |
PG Context Sidebar /wp-admin/options-general.php?page=pg-context-sidebar/pg-context-sidebar.php | 882 | 2.05 | 24.36 | 30.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_pgeek_cs_widget
- pgeek_cs_options
- theysaidso_admin_options
- db_upgraded
- pgeek_cs_option_ver
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=pg-context-sidebar/pg-context-sidebar.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=pg-context-sidebar/pg-context-sidebar.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pg-context-sidebar/pg-context-sidebar.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Shows new fields for your sidebar content on the post page), #2 (Shows the resulting content in the sidebar for the page), #3 (Shows the ability to select the page or post types that allow context sensitive content)
pg-context-sidebar/pg-context-sidebar.php 92% from 13 tests
"PG Context Sidebar" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin607 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 89 | 66 | 356 |
PO File | 1 | 44 | 44 | 168 |
JavaScript | 1 | 5 | 0 | 42 |
CSS | 1 | 4 | 0 | 41 |
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.43 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.42MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 19.97KB | 9.90KB | ▼ 50.40% |
screenshot-2.png | 356.34KB | 139.96KB | ▼ 60.72% |
screenshot-1.png | 54.54KB | 25.32KB | ▼ 53.58% |
images/pg-cs-status-sprite.png | 2.73KB | 2.26KB | ▼ 17.19% |