Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼172.37ms] Passed 4 tests
This is a short check of server-side resources used by Slider for Writers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 35.03 ▲14.58 |
Dashboard /wp-admin | 2.79 ▼0.26 | 22.15 ▼24.64 |
Posts /wp-admin/edit.php | 2.79 ▼0.31 | 21.02 ▼21.71 |
Add New Post /wp-admin/post-new.php | 2.79 ▼2.64 | 21.39 ▼629.29 |
Media Library /wp-admin/upload.php | 2.79 ▼0.21 | 20.49 ▼13.83 |
Slider for Writers /wp-admin/options-general.php?page=slider-for-writers/slider-for-writers.php | 2.79 | 20.97 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
writer_pauseOnHover |
writer_thumbnail |
writer_autoplay |
writer_description |
writer_easing |
writer_fx |
writer_duration |
writer_navs |
Browser metrics Passed 4 tests
A check of browser resources used by Slider for Writers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,947 ▲352 | 16.54 ▲0.87 | 22.30 ▲11.52 | 49.69 ▲2.94 |
Dashboard /wp-admin | 2,980 ▲49 | 5.94 ▲0.01 | 132.02 ▼20.41 | 119.74 ▲8.01 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.72 ▼0.00 | 70.35 ▲1.98 | 84.53 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,688 ▲5 | 18.09 ▼0.65 | 398.29 ▼2.92 | 116.97 ▲7.39 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.00 ▼0.03 | 158.59 ▲3.03 | 114.34 ▼3.79 |
Slider for Writers /wp-admin/options-general.php?page=slider-for-writers/slider-for-writers.php | 1,407 | 2.22 | 63.76 | 83.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=slider-for-writers/slider-for-writers.php
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/slider-for-writers/slider-for-writers.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-for-writers/editor/add_buttons.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: image, slider, page, images admin, post...
slider-for-writers/slider-for-writers.php Passed 13 tests
"Slider for Writers" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
Simple wordpress plugin for slider with lightbox in the posts and static page.
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 detected713 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 24 | 269 |
JavaScript | 7 | 63 | 52 | 236 |
CSS | 2 | 7 | 9 | 124 |
PO File | 1 | 18 | 23 | 67 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
editor/writer_slider.png | 15.66KB | 1.13KB | ▼ 92.80% |
assets/images/dark_controls.png | 1.59KB | 1.67KB | 0.00% |