Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼22.71ms] Passed 4 tests
Server-side resources used by Preview Everywhere
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.65 | 16.28 ▼23.83 |
Dashboard /wp-admin | 3.23 ▼0.07 | 44.27 ▼10.40 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.06 ▲1.00 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 38.02 ▼57.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 44.14 ▲10.27 |
Server storage [IO: ▲0.40MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Preview Everywhere
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.68 ▲0.32 | 1.76 ▲0.12 | 44.75 ▼1.20 |
Dashboard /wp-admin | 2,222 ▲45 | 5.55 ▼0.02 | 85.65 ▼9.02 | 39.87 ▼6.09 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.03 | 39.41 ▲5.10 | 38.03 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 22.82 ▼0.24 | 651.89 ▼44.62 | 54.11 ▼0.96 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▼0.05 | 107.27 ▼3.79 | 45.26 ▲1.56 |
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 detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/preview-everywhere/preview-everywhere.php:21
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (The green Preview button in edit page.), #2 (Preview owner name near post title in list view.)
preview-everywhere/preview-everywhere.php Passed 13 tests
This is the main PHP file of "Preview Everywhere" version 3.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Preview your content in whole site, not only as a Single Page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin127 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 17 | 109 |
CSS | 1 | 0 | 0 | 12 |
JavaScript | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.39MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot 1.png | 217.66KB | 58.49KB | ▼ 73.13% |
screenshot 2.png | 178.75KB | 49.10KB | ▼ 72.53% |