Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/widgets-on-pages-and-posts/includes/class-widgets-on-pages-activator.php+44
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.00MB] [CPU: ▼305.23ms] Passed 4 tests
An overview of server-side resources used by Widgets on Pages and Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.32 | 57.42 ▲4.80 |
Dashboard /wp-admin | 3.61 ▲0.20 | 26.12 ▼6.87 |
Posts /wp-admin/edit.php | 3.67 ▲0.04 | 29.36 ▼10.92 |
Add New Post /wp-admin/post-new.php | 6.41 ▼0.56 | 79.35 ▼1,203.48 |
Media Library /wp-admin/upload.php | 3.62 ▲0.32 | 22.44 ▲0.35 |
Widgets /wp-admin/widgets.php | 5.38 | 47.55 |
Menus /wp-admin/nav-menus.php | 4.13 | 37.67 |
Turbo Sidebars /wp-admin/edit.php?post_type=turbo-sidebar-cpt | 3.66 | 27.74 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- There were 1 file (13.56KB) illegally modified outside of "wp-content/plugins/widgets-on-pages-and-posts/" and "wp-content/uploads/"
- (new file) siteguarding_tools.php
Filesystem: 161 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_debug_mode |
fs_accounts |
fs_api_cache |
wop_plugin_version |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widgets on Pages and Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,853 ▲99 | 15.89 ▲0.25 | 6.62 ▼0.01 | 2.64 ▼0.28 |
Dashboard /wp-admin | 2,953 ▲99 | 6.21 ▼0.07 | 121.24 ▼12.59 | 174.03 ▲16.89 |
Posts /wp-admin/edit.php | 2,745 ▲51 | 3.28 ▲0.05 | 68.41 ▲4.56 | 150.78 ▲9.82 |
Add New Post /wp-admin/post-new.php | 1,708 ▲47 | 18.43 ▲2.00 | 405.62 ▼19.00 | 160.62 ▲3.55 |
Media Library /wp-admin/upload.php | 1,755 ▲57 | 5.58 ▲0.04 | 143.32 ▼1.15 | 202.16 ▲12.73 |
Widgets /wp-admin/widgets.php | 2,530 | 24.20 | 539.76 | 132.71 |
Menus /wp-admin/nav-menus.php | 2,301 | 3.37 | 84.49 | 139.81 |
Turbo Sidebars /wp-admin/edit.php?post_type=turbo-sidebar-cpt | 2,115 | 3.25 | 64.48 | 152.89 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_api_cache
- fs_active_plugins
- fs_debug_mode
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=turbo-sidebar-cpt
- > User deprecated in wp-includes/functions.php+5691
contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/widgets-on-pages-and-posts/admin/partials/widgets-on-pages-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widgets-on-pages-and-posts/includes/class-functions.php:85
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
widgets-on-pages-and-posts/widgets_on_pages.php 85% from 13 tests
The primary PHP file in "Widgets on Pages and Posts" version 1.4.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("widgets-on-pages-and-posts.php" instead of "widgets_on_pages.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin23,067 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 3,689 | 9,387 | 15,904 |
PO File | 5 | 1,874 | 1,897 | 4,811 |
Sass | 16 | 277 | 82 | 1,713 |
JavaScript | 6 | 45 | 62 | 376 |
Markdown | 1 | 64 | 0 | 189 |
CSS | 13 | 6 | 4 | 42 |
JSON | 1 | 0 | 0 | 32 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,042)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 39.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,042.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 2 | 4.65% |
▷ Concrete classes | 41 | 95.35% |
▷ Final classes | 0 | 0.00% |
Methods | 720 | |
▷ Static methods | 112 | 15.56% |
▷ Public methods | 539 | 74.86% |
▷ Protected methods | 12 | 1.67% |
▷ Private methods | 169 | 23.47% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 80 | 82.47% |
▷ Class constants | 17 | 17.53% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/widgets-on-pages.png | 9.16KB | 5.26KB | ▼ 42.58% |