Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.07ms] Passed 4 tests
An overview of server-side resources used by Category Post Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.91 ▲2.59 |
Dashboard /wp-admin | 3.49 ▲0.15 | 49.72 ▼15.17 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 54.33 ▲4.88 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 86.96 ▼1.15 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.09 ▼2.56 |
Category Post Slider /wp-admin/options-general.php?page=category-post-slider | 3.39 | 32.69 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
category_post_slider_option_name |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Category Post Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 13.84 ▼0.33 | 9.08 ▲7.47 | 44.91 ▼1.08 |
Dashboard /wp-admin | 2,204 ▲32 | 5.66 ▼0.06 | 88.41 ▼12.95 | 40.10 ▼1.55 |
Posts /wp-admin/edit.php | 2,106 ▲27 | 2.00 ▲0.01 | 35.85 ▼1.55 | 32.54 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.59 ▲5.57 | 595.89 ▼42.01 | 54.39 ▼5.67 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.05 | 100.26 ▼6.03 | 43.49 ▼2.80 |
Category Post Slider /wp-admin/options-general.php?page=category-post-slider | 1,298 | 1.67 | 23.58 | 31.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- category_post_slider_option_name
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/category-post-slider/cps-setting-option.php:680
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/category-post-slider/category-post-slider.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
5 plugin tags: images, category, post slider, slider, image slider
category-post-slider/category-post-slider.php Passed 13 tests
The primary PHP file in "Category Post Slider" version 1.3 is used by WordPress to initiate all plugin functionality
32 characters long description:
A WordPress Category Post Slider
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
Success! There were no dangerous files found in this plugin2,243 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 27 | 11 | 1,102 |
PHP | 2 | 128 | 28 | 741 |
CSS | 1 | 32 | 25 | 400 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 142.00 |
▷ Minimum class complexity | 142.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/controls.png | 2.19KB | 0.95KB | ▼ 56.49% |