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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.11ms] Passed 4 tests
This is a short check of server-side resources used by Page Sidebar for Twenty Seventeen
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.20 ▼0.93 |
Dashboard /wp-admin | 3.41 ▲0.07 | 45.12 ▼14.03 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.91 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 88.61 ▼3.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 39.43 ▲6.82 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.34 | 30.00 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Page Sidebar for Twenty Seventeen: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.23 ▼1.07 | 2.02 ▲0.01 | 44.06 ▲2.40 |
Dashboard /wp-admin | 2,237 ▲49 | 5.85 ▼0.03 | 96.73 ▼26.20 | 40.36 ▼2.32 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.10 ▲0.09 | 40.50 ▲3.80 | 41.50 ▲9.83 |
Add New Post /wp-admin/post-new.php | 1,564 ▲47 | 18.18 ▲0.63 | 658.19 ▼7.82 | 54.64 ▲2.16 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.25 ▲0.02 | 104.88 ▲7.82 | 50.29 ▲7.07 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 959 | 2.06 | 27.75 | 27.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/page-sidebar-for-twentyseventeen/templates/page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/page-sidebar-for-twentyseventeen/lib/TGM-Plugin-Activation/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/page-sidebar-for-twentyseventeen/templates/front-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/page-sidebar-for-twentyseventeen/tgm-plugin-activation.php:9
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: twentyseventeen, 2017 sidebar, page sidebar, twentyseventeen sidebar
page-sidebar-for-twentyseventeen/page-sidebar-for-twentyseventeen.php Passed 13 tests
The main PHP file in "Page Sidebar for Twenty Seventeen" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Adds default sidebar to all pages.
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
There were no executable files found in this plugin1,895 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 502 | 1,678 | 1,895 |
PHP code Passed 2 tests
Analyzing 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.52 |
Average class complexity | 48.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 78 | 77.23% |
▷ Protected methods | 23 | 22.77% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
There were not PNG files found in your plugin