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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.16ms] Passed 4 tests
This is a short check of server-side resources used by Per Page Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.24 ▼8.02 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.29 ▼12.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.19 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.85 ▼7.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.19 ▼4.78 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Per Page Widgets
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.78 ▲0.55 | 1.68 ▼0.10 | 38.79 ▼4.94 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼1.01 | 108.10 ▼5.60 | 39.53 ▼7.08 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 39.40 ▼2.38 | 36.47 ▼1.00 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,719 | 26.23 ▲7.86 | 843.05 ▲206.32 | 54.91 ▼22.27 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.08 | 99.65 ▲0.54 | 41.19 ▼1.90 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/per-page-widgets/i123_per_page_widgets.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/per-page-widgets/i123_per_page_widgets.php:10
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (The default box added to the edit page for each page or post. By default the setting is "Standard" which means the Per Page Widgets will not affect your current sidebar and widget setup. The plugin also adds a little link to edit widget directly in an overlay.), #2 (When selecting "Special" from the main dropdown, you are given detailed control of each widget area. You may show, hide or set special widgets for any area defined by your theme.), #3 (The widget editor shown in an overlay. With this you will edit the custom widgets using the exact same interface that you are used to.)
per-page-widgets/i123_per_page_widgets.php 85% from 13 tests
The entry point to "Per Page Widgets" version 0.0.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 241 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("per-page-widgets.php" instead of "i123_per_page_widgets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected383 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 45 | 186 |
CSS | 1 | 1 | 0 | 97 |
JavaScript | 1 | 5 | 3 | 54 |
PO File | 1 | 15 | 21 | 46 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 15.33KB | 6.89KB | ▼ 55.05% |
screenshot-3.png | 57.95KB | 28.78KB | ▼ 50.33% |
screenshot-1.png | 6.72KB | 3.84KB | ▼ 42.92% |