Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.36ms] Passed 4 tests
A check of server-side resources used by Showcase Theme Preview Reloaded
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.56 ▲3.15 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.67 ▼4.84 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.94 ▼3.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.36 ▼11.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.30 ▲1.83 |
Server storage [IO: ▲0.01MB] [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, 7 new options
New WordPress options |
---|
db_upgraded |
widget_stpr-theme-preview |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Showcase Theme Preview Reloaded
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.46 ▲0.22 | 2.26 ▲0.46 | 43.36 ▼0.90 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▲0.03 | 108.00 ▲6.36 | 39.81 ▼2.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.03 | 39.29 ▼0.92 | 35.98 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.09 ▲4.82 | 667.09 ▲24.38 | 56.79 ▲2.91 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▼0.09 | 102.20 ▲2.24 | 44.01 ▼1.51 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_stpr-theme-preview
- can_compress_scripts
- theysaidso_admin_options
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
Even though everything seems fine, this is not 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 take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/showcase-theme-preview-reloaded/includes/shortcode.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/showcase-theme-preview-reloaded/includes/functions.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/showcase-theme-preview-reloaded/theme-showcase.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/showcase-theme-preview-reloaded/includes/class-theme-preview-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: theme preview, theme, showcase, demo, preview...
showcase-theme-preview-reloaded/theme-showcase.php 85% from 13 tests
The primary PHP file in "Showcase Theme Preview Reloaded" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("showcase-theme-preview-reloaded.php" instead of "theme-showcase.php")
- Description: Keep the plugin description shorter than 140 characters (currently 470 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected236 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 37 | 205 |
JavaScript | 1 | 2 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin