Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼147.00ms] Passed 4 tests
A check of server-side resources used by View Published
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 27.05 ▼6.71 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.23 ▲2.61 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 39.75 ▼8.39 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 85.34 ▼575.52 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 30.91 ▲4.04 |
View Published /wp-admin/edit.php?post_type=page&post_status=publish | 3.10 | 41.63 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for View Published
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲112 | 16.03 ▲0.32 | 10.81 ▲1.97 | 49.18 ▲1.71 |
Dashboard /wp-admin | 2,975 ▲41 | 5.99 ▲0.02 | 169.88 ▲14.13 | 107.96 ▼11.53 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.71 ▼0.01 | 62.60 ▼9.50 | 83.33 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,686 ▲14 | 18.78 ▲0.05 | 406.40 ▲25.44 | 104.77 ▼1.66 |
Media Library /wp-admin/upload.php | 1,812 ▼10 | 5.01 ▼0.03 | 153.30 ▼5.76 | 110.98 ▼11.19 |
View Published /wp-admin/edit.php?post_type=page&post_status=publish | 2,441 | 2.70 | 65.01 | 84.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/view-published/view-published.php:12
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== view-published ===
) - Screenshots: Please add images for these screenshots: #1 (screenshot-1.jpg shows the submenu from “Pages”), #2 (screenshot-1.jpg shows the loaded page when the url was clicked)
view-published/view-published.php Passed 13 tests
"View Published" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
140 characters long description:
View Published is a plugin that adds a sub menu under "Pages" that shows only those pages that are published. Get to the right pages faster!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 11 | 6 |
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.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-256x256.png | 11.67KB | 4.31KB | ▼ 63.09% |