Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.66ms] Passed 4 tests
Server-side resources used by Responsive Post Preview
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.66 ▼0.55 |
Dashboard /wp-admin | 3.31 ▼0.03 | 52.97 ▼10.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.40 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.98 ▼9.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.20 ▼0.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Post Preview
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.29 ▼1.01 | 2.16 ▲0.41 | 45.98 ▼0.78 |
Dashboard /wp-admin | 2,209 ▲18 | 5.88 ▲0.99 | 106.25 ▼2.57 | 43.43 ▲4.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.07 | 41.76 ▲6.40 | 41.82 ▲4.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.22 ▲4.87 | 689.13 ▲53.73 | 66.90 ▲12.41 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.03 | 108.27 ▲7.53 | 46.85 ▲5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-post-preview/responsive-post-preview.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: post, edit
responsive-post-preview/responsive-post-preview.php Passed 13 tests
The principal PHP file in "Responsive Post Preview" v. 1.0.3 is loaded by WordPress automatically on each request
66 characters long description:
Adds the ability to preview your posts at different viewport sizes
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
No dangerous file extensions were detected141 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 19 | 63 |
JavaScript | 1 | 26 | 13 | 38 |
CSS | 1 | 4 | 0 | 30 |
SVG | 1 | 0 | 1 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sprites.png | 0.55KB | 0.27KB | ▼ 51.15% |
assets/screenshot-1.png | 41.60KB | 14.00KB | ▼ 66.35% |