Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.96ms] Passed 4 tests
An overview of server-side resources used by Custom Post Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.06 ▼2.49 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.18 ▲0.28 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.69 ▲4.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.68 ▲1.99 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.75 ▲5.78 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_tzcustom_optionset |
wp_tzcustom_thumbnail |
New WordPress options |
---|
tzcustomsmethod3 |
widget_recent-posts |
widget_theysaidso_widget |
tzcustomsmethod2 |
can_compress_scripts |
widget_recent-comments |
tzcustomsmethod1 |
tzcustom-curr-version |
theysaidso_admin_options |
tzcustom-db-version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲117 | 13.60 ▲0.34 | 8.40 ▲2.42 | 39.79 ▼2.58 |
Dashboard /wp-admin | 2,218 ▲9 | 5.84 ▲0.99 | 102.22 ▲2.17 | 73.00 ▲32.11 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 1.97 ▼0.02 | 34.58 ▼0.69 | 33.65 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,680 ▲144 | 19.96 ▼3.17 | 810.48 ▲164.51 | 64.18 ▲10.25 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.16 ▼0.08 | 93.64 ▼4.35 | 71.04 ▲29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_tzcustom_optionset
- wp_tzcustom_thumbnail
- This plugin does not fully uninstall, leaving 12 options in the database
- tzcustom-db-version
- tzcustom-update-notification
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- tzcustomsmethod2
- widget_theysaidso_widget
- widget_recent-posts
- tzcustom-curr-version
- ...
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-post-slider/custom-post-slider.php:12
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Add New.), #2 (Post options.), #3 (Use Shortcode.)
custom-post-slider/custom-post-slider.php Passed 13 tests
This is the main PHP file of "Custom Post Slider" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Multiple slider with Featured Image post and easy options to config.
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 detected3,357 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 236 | 23 | 1,550 |
PHP | 6 | 145 | 88 | 1,299 |
CSS | 5 | 22 | 29 | 508 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 1 | 20.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/down.png | 2.77KB | 0.11KB | ▼ 95.95% |
images/downb.png | 0.15KB | 0.11KB | ▼ 24.84% |
images/tzsidebar.png | 0.28KB | 0.31KB | 0.00% |
images/up.png | 2.79KB | 0.11KB | ▼ 95.94% |
images/upb.png | 0.96KB | 0.11KB | ▼ 88.15% |