Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.70ms] Passed 4 tests
An overview of server-side resources used by Just Post Preview Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.66 ▼1.37 |
Dashboard /wp-admin | 3.36 ▲0.01 | 42.55 ▼14.70 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.90 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 82.40 ▼13.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.85 ▼1.19 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_jpp_widget_post_preview |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Just Post Preview Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▲0.04 | 1.76 ▲0.18 | 43.28 ▲1.47 |
Dashboard /wp-admin | 2,192 ▲12 | 5.56 ▼0.10 | 86.30 ▼1.14 | 39.93 ▼0.41 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▼0.03 | 34.87 ▼6.53 | 35.08 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.35 ▲0.15 | 675.49 ▲11.38 | 57.27 ▲3.05 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.06 | 110.30 ▲6.58 | 49.23 ▲1.14 |
Uninstaller [IO: ▲0.00MB] [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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_jpp_widget_post_preview
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 items
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/just-post-preview/layouts/jpp_layout_hero.php on line 7
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/just-post-preview/layouts/jpp_layout_left_image.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/just-post-preview/just-post-preview.widget.php:10
- > 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/just-post-preview/just-post-preview.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/just-post-preview/layouts/jpp_layout_left_image.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function has_post_thumbnail() in wp-content/plugins/just-post-preview/layouts/jpp_layout_right_image.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/just-post-preview/just-post-preview.widget.php:10
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/just-post-preview/layouts/jpp_layout_hero.php on line 7
- > PHP Notice
Undefined variable: post in wp-content/plugins/just-post-preview/layouts/jpp_layout_left_image.php on line 7
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/just-post-preview/layouts/jpp_layout_right_image.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Widget edit screenshot), #2 (Using widget inside the SiteOrigin Page builder plugin)
just-post-preview/just-post-preview.php Passed 13 tests
"Just Post Preview Widget" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
92 characters long description:
Widget to easy add any content preview block with different layouts, specified in the theme.
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 plugin308 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 47 | 82 | 258 |
JavaScript | 1 | 7 | 1 | 47 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 9 | |
▷ Static methods | 3 | 33.33% |
▷ Public methods | 6 | 66.67% |
▷ Protected methods | 3 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.08KB | 9.14KB | ▼ 60.39% |
screenshot-2.png | 43.81KB | 18.52KB | ▼ 57.73% |