Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼283.40ms] Passed 4 tests
A check of server-side resources used by Public Post Preview Configurator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 46.64 ▲30.64 |
Dashboard /wp-admin | 3.09 ▲0.04 | 36.27 ▼3.57 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 43.79 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.08 ▼1,113.93 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 25.23 ▼15.28 |
Public Post Preview Configurator /wp-admin/options-general.php?page=public-post-preview-configurator | 3.00 | 28.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Public Post Preview Configurator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲125 | 15.92 ▲0.41 | 8.92 ▼0.23 | 46.06 ▼2.83 |
Dashboard /wp-admin | 2,961 ▲111 | 5.92 ▲0.05 | 135.75 ▼1.88 | 101.76 ▲2.95 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.69 ▲0.00 | 63.90 ▲2.91 | 79.83 ▼8.50 |
Add New Post /wp-admin/post-new.php | 1,656 ▲5 | 18.52 ▲1.48 | 353.55 ▼5.61 | 102.45 ▼7.87 |
Media Library /wp-admin/upload.php | 1,783 ▲8 | 4.99 ▼0.02 | 149.79 ▼0.41 | 106.24 ▼10.62 |
Public Post Preview Configurator /wp-admin/options-general.php?page=public-post-preview-configurator | 1,024 | 2.11 | 54.40 | 63.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=public-post-preview-configurator
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=public-post-preview-configurator
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at 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 screen_icon() in wp-content/plugins/public-post-preview-configurator/admin/views/admin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: post, public, preview, posts, configuration
public-post-preview-configurator/public-post-preview-configurator.php Passed 13 tests
"Public Post Preview Configurator" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Enables you to configure 'public post preview' plugin with a user interface.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin171 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 34 | 204 | 137 |
PO File | 1 | 6 | 13 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin