Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.44MB] [CPU: ▼138.59ms] Passed 4 tests
An overview of server-side resources used by Sticky One-Many
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.29 ▲0.46 | 39.24 ▲4.01 |
Dashboard /wp-admin | 3.56 ▲0.50 | 54.72 ▲9.67 |
Posts /wp-admin/edit.php | 3.60 ▲0.49 | 51.19 ▲7.96 |
Add New Post /wp-admin/post-new.php | 5.82 ▲0.38 | 89.11 ▼570.43 |
Media Library /wp-admin/upload.php | 3.44 ▲0.44 | 38.73 ▲4.11 |
Sticky Options /wp-admin/themes.php?page=stickyone_many | 3.47 | 37.37 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Sticky One-Many
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,086 ▲490 | 18.91 ▲3.14 | 13.34 ▲4.34 | 48.60 ▲1.62 |
Dashboard /wp-admin | 3,240 ▲309 | 7.97 ▲1.87 | 166.88 ▲21.63 | 117.48 ▼3.54 |
Posts /wp-admin/edit.php | 3,035 ▲296 | 4.55 ▲1.83 | 83.29 ▲15.41 | 90.59 ▲2.05 |
Add New Post /wp-admin/post-new.php | 2,121 ▲449 | 16.32 ▼2.48 | 368.62 ▼8.30 | 103.62 ▼4.67 |
Media Library /wp-admin/upload.php | 1,884 ▲77 | 5.36 ▲0.34 | 118.26 ▼35.27 | 117.35 ▲1.00 |
Sticky Options /wp-admin/themes.php?page=stickyone_many | 1,469 | 3.95 | 80.31 | 65.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 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 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 have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-one-many/stickmany-loop.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sticky-one-many/plugin.php:13
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in sticky-one-many/assets to your readme.txt
sticky-one-many/plugin.php 92% from 13 tests
The main file in "Sticky One-Many" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sticky-one-many.php" instead of "plugin.php")
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
There were no executable files found in this plugin31,151 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,050 |
JavaScript | 9 | 1,100 | 796 | 4,652 |
CSS | 8 | 166 | 73 | 4,340 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 41 | 720 | 761 | 1,733 |
PO File | 7 | 306 | 334 | 705 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 11.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 1 | 1.28% |
▷ Public methods | 78 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/csf/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
library/csf/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
library/csf/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |