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.20MB] [CPU: ▼2.74ms] Passed 4 tests
An overview of server-side resources used by Ms Post Type Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.38 ▲0.16 |
Dashboard /wp-admin | 3.50 ▲0.20 | 51.35 ▼0.36 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.85 ▲0.07 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 90.44 ▼10.35 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.50 ▼0.30 |
Settings /wp-admin/admin.php?page=fpb_mspts_setting | 3.55 | 35.77 |
Introduction /wp-admin/admin.php?page=fpb_mspts_intro | 3.41 | 31.40 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Ms Post Type Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲51 | 14.28 ▼0.27 | 2.14 ▼0.30 | 44.19 ▲1.35 |
Dashboard /wp-admin | 2,218 ▲47 | 5.59 ▲0.07 | 93.02 ▲2.99 | 41.80 ▼3.76 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.99 ▼0.11 | 34.72 ▼3.89 | 34.48 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 22.99 ▼0.05 | 677.82 ▼27.52 | 59.96 ▲3.82 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.17 ▼0.06 | 99.97 ▼17.53 | 42.19 ▼7.06 |
Settings /wp-admin/admin.php?page=fpb_mspts_setting | 3,784 | 3.51 | 136.79 | 49.59 |
Introduction /wp-admin/admin.php?page=fpb_mspts_intro | 1,055 | 1.99 | 23.16 | 43.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Design and slider setting screen in plugin.), #2 (Frontend View of grid and pagination.), #3 (Frontend View of slider layout.)
ms-post-type-shortcode/ms-post-grid-shortcode.php 92% from 13 tests
Analyzing the main PHP file in "Ms Post Type Shortcode" version 1.0
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 ("ms-post-type-shortcode.php" instead of "ms-post-grid-shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin10,008 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 103 | 29 | 3,607 |
SVG | 2 | 1 | 0 | 2,684 |
JavaScript | 7 | 860 | 54 | 2,386 |
PHP | 8 | 111 | 166 | 1,331 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 43.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 11.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 4 | 19.05% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 46.88KB | 14.62KB | ▼ 68.81% |
screenshot-2.png | 263.98KB | 78.49KB | ▼ 70.27% |
screenshot-3.png | 45.39KB | 13.12KB | ▼ 71.10% |