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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.42ms] Passed 4 tests
This is a short check of server-side resources used by Custom Classes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.03 ▼0.98 |
Dashboard /wp-admin | 3.37 ▲0.03 | 48.87 ▼13.46 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.18 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.07 ▼25.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.79 ▼1.51 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Custom Classes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.62 ▲1.40 | 1.90 ▼2.76 | 43.95 ▼3.64 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.09 | 86.97 ▼4.60 | 40.45 ▼3.12 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.04 ▼0.00 | 35.69 ▼4.45 | 33.37 ▼10.66 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,715 | 26.11 ▲2.87 | 889.86 ▲279.88 | 54.75 ▲3.79 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.27 ▲0.07 | 101.05 ▲3.93 | 44.63 ▲2.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Classes\\add_action() in wp-content/plugins/custom-classes/inc/functions-filters.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Classes\\trailingslashit() in wp-content/plugins/custom-classes/custom-classes.php:93
- > 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, but this is not an exhaustive test
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:
- Screenshots: These screenshots require images: #1 (Custom classes meta box), #2 (Body class output in source code)
custom-classes/custom-classes.php Passed 13 tests
The main PHP script in "Custom Classes" version 1.0.0 is automatically included on every request by WordPress
64 characters long description:
Allows users to add custom post and body classes from the admin.
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
Success! There were no dangerous files found in this plugin502 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 4 | 86 | 0 | 313 |
PHP | 4 | 102 | 296 | 189 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 3 | 100.00% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 13 | 61.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 38.10% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 8.65KB | 8.55KB | ▼ 1.05% |
screenshot-1.png | 12.03KB | 12.01KB | 0.13% |