Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.57ms] Passed 4 tests
This is a short check of server-side resources used by Shortcuts for Front Page and Posts Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.75 ▼3.34 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.54 ▼7.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.93 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.57 ▼17.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.73 ▼0.87 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Shortcuts for Front Page and Posts Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.48 ▲0.18 | 2.17 ▲0.41 | 38.06 ▼7.72 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.90 | 99.61 ▼0.42 | 36.41 ▼8.18 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.11 ▲0.12 | 37.75 ▼4.66 | 34.88 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.29 ▼0.01 | 649.77 ▲59.06 | 53.31 ▼0.25 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.03 | 94.80 ▼1.28 | 41.20 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shortcuts-for-front-page-and-posts-page/shortcuts-front-page-posts-page.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: navigation, admin, pages, shortcuts, administration
shortcuts-for-front-page-and-posts-page/shortcuts-front-page-posts-page.php 69% from 13 tests
The principal PHP file in "Shortcuts for Front Page and Posts Page" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("shortcuts-for-front-page-and-posts-page.php" instead of "shortcuts-front-page-posts-page.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
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
Everything looks great! No dangerous files found in this plugin104 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 36 | 48 |
PO File | 1 | 6 | 7 | 30 |
JSON | 1 | 0 | 0 | 15 |
Markdown | 1 | 8 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 3 | 60.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 1 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/demo.png | 17.31KB | 6.18KB | ▼ 64.30% |