Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.14ms] Passed 4 tests
An overview of server-side resources used by Classy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 38.74 ▲0.01 | 7,244,260.10 ▲8,558.00 |
Dashboard /wp-admin | 3.48 ▲0.09 | 54.89 ▼9.57 |
Posts /wp-admin/edit.php | 3.59 ▲0.19 | 51.73 ▼0.72 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.15 | 104.68 ▼7.50 |
Media Library /wp-admin/upload.php | 3.40 ▲0.13 | 39.71 ▲1.21 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
classy_token |
can_compress_scripts |
classy_cid |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Classy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 13.81 ▼0.58 | 8.11 ▲6.51 | 39.04 ▲1.14 |
Dashboard /wp-admin | 2,208 ▲38 | 5.52 ▼0.18 | 92.57 ▼10.38 | 71.76 ▲30.72 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.97 ▼0.05 | 38.21 ▼2.12 | 35.40 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,543 ▲8 | 23.60 ▲5.37 | 658.87 ▲2.19 | 63.20 ▼0.45 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.23 ▲0.01 | 117.10 ▲20.67 | 77.43 ▲35.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- classy_cid
- widget_recent-posts
- can_compress_scripts
- classy_token
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/classy/trunk/public/partials/classy-public-display.php
- > /wp-content/plugins/classy/public/partials/classy-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Classy_API' not found in wp-content/plugins/classy/admin/partials/classy-admin-display.php:13
- > PHP Fatal error
Uncaught Error: Class 'Classy_API' not found in wp-content/plugins/classy/trunk/admin/partials/classy-admin-display.php:13
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== classy ===
)
classy/classy.php Passed 13 tests
The principal PHP file in "Classy" v. 1.2.3 is loaded by WordPress automatically on each request
71 characters long description:
A tool used to integrate Classy's API into easily accessible shortcodes
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 detected725 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 175 | 627 | 681 |
CSS | 2 | 8 | 8 | 38 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 8 | 7.27% |
▷ Public methods | 96 | 87.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 12.73% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.20MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/admin/img/classy.png | 18.08KB | 0.91KB | ▼ 94.95% |
trunk/public/img/group.png | 21.73KB | 2.95KB | ▼ 86.40% |
admin/img/classy.png | 18.08KB | 0.91KB | ▼ 94.95% |
public/img/group.png | 21.73KB | 2.95KB | ▼ 86.40% |
public/img/single.png | 20.63KB | 1.63KB | ▼ 92.09% |