Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.14ms] Passed 4 tests
Server-side resources used by CPT Shortcode Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.85 ▼3.16 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.66 ▼3.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.44 ▲0.32 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.35 ▼22.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.53 ▲0.35 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
CPT Shortcode Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.72 ▲0.37 | 1.67 ▼0.18 | 44.55 ▲2.15 |
Dashboard /wp-admin | 2,214 ▲34 | 5.64 ▲0.03 | 85.05 ▼10.83 | 39.30 ▼3.78 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▲0.03 | 34.29 ▼1.64 | 36.04 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.33 ▲0.26 | 678.84 ▼29.15 | 46.40 ▼9.50 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.20 ▲0.01 | 98.21 ▲1.09 | 46.35 ▲2.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: cpt, post type, custom post types, custom, shortcode...
cpt-shortcode/cpt-shortcode.php Passed 13 tests
The main PHP file in "CPT Shortcode Generator" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
A plugin to generate shortcode to display Custom Post Type listing wherever needed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected337 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 33 | 35 | 272 |
CSS | 2 | 1 | 0 | 60 |
JavaScript | 1 | 3 | 18 | 5 |
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.31 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-2.png | 30.66KB | 13.30KB | ▼ 56.61% |
assets/images/screenshot-1.png | 29.55KB | 12.75KB | ▼ 56.87% |
assets/images/screenshot-5.png | 93.24KB | 28.12KB | ▼ 69.84% |
assets/images/screenshot-3.png | 34.82KB | 15.40KB | ▼ 55.76% |
assets/images/screenshot-4.png | 12.46KB | 6.27KB | ▼ 49.67% |