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.07MB] [CPU: ▼10.71ms] Passed 4 tests
Server-side resources used by Mini Preview
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.82 ▼2.84 |
Dashboard /wp-admin | 3.38 ▲0.03 | 46.54 ▼16.69 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.95 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 82.13 ▼21.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 32.56 ▼1.81 |
Mini Preview /wp-admin/options-general.php?page=mini_preview_settings | 3.27 | 30.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mini Preview
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.25 ▼1.04 | 2.04 ▲0.14 | 43.21 ▲1.06 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▼0.07 | 96.06 ▼20.43 | 40.91 ▼3.48 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 2.05 ▲0.02 | 38.85 ▲3.19 | 35.80 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,594 ▲66 | 21.05 ▼2.07 | 677.18 ▼15.28 | 62.10 ▲8.76 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.04 | 97.83 ▼7.25 | 41.86 ▼4.39 |
Mini Preview /wp-admin/options-general.php?page=mini_preview_settings | 830 | 2.06 | 27.72 | 29.29 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mini-preview/mini-preview.php:309
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 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
6 plugin tags: editor, preview, tablet, desktop, responsive...
mini-preview/mini-preview.php Passed 13 tests
"Mini Preview" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Displays a mini preview when a page or post is being edited.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected892 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 134 | 25 | 520 |
PHP | 2 | 64 | 12 | 245 |
CSS | 1 | 30 | 8 | 127 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 23 | |
▷ Static methods | 23 | 100.00% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin