Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼293.90ms] Passed 4 tests
Analyzing server-side resources used by Post Type Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 54.57 ▲2.63 |
Dashboard /wp-admin | 3.52 ▲0.11 | 38.89 ▲5.44 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 37.98 ▲0.79 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.03 | 97.35 ▼1,178.20 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 27.57 ▼0.81 |
Add Slider /wp-admin/post-new.php?post_type=post_type_slider | 3.67 | 40.95 |
All Slider /wp-admin/edit.php?post_type=post_type_slider | 3.43 | 28.76 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Type Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲50 | 15.74 ▼0.05 | 6.33 ▼0.24 | 2.19 ▼0.49 |
Dashboard /wp-admin | 2,929 ▲71 | 6.15 ▲0.01 | 118.31 ▼11.63 | 156.45 ▼6.54 |
Posts /wp-admin/edit.php | 2,722 ▲28 | 3.24 ▲0.01 | 61.54 ▼2.33 | 135.60 ▼7.94 |
Add New Post /wp-admin/post-new.php | 1,785 ▲117 | 22.61 ▲3.33 | 419.29 ▲22.81 | 148.51 ▼18.46 |
Media Library /wp-admin/upload.php | 1,737 ▲39 | 5.53 ▼0.00 | 139.27 ▼0.76 | 186.90 ▲2.76 |
Add Slider /wp-admin/post-new.php?post_type=post_type_slider | 2,461 | 4.07 | 92.60 | 143.52 |
All Slider /wp-admin/edit.php?post_type=post_type_slider | 1,398 | 3.15 | 60.27 | 113.20 |
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 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/post-type-slider/post-type-slider.php:16
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
post-type-slider/post-type-slider.php 77% from 13 tests
"Post Type Slider" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("")
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,781 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 98 | 520 | 1,027 |
PHP | 2 | 45 | 52 | 572 |
CSS | 2 | 2 | 13 | 182 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 8 | |
▷ Global constants | 8 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |