Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.30ms] Passed 4 tests
Analyzing server-side resources used by Category Featured Image
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.33 ▲0.30 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.59 ▼14.19 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.72 ▲0.36 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.94 ▲3.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 34.96 ▲0.33 |
Category Featured Image /wp-admin/edit.php?page=categoryfeaturedimage | 3.28 | 30.72 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Category Featured Image: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.45 ▲0.10 | 1.83 ▲0.08 | 47.74 ▲1.60 |
Dashboard /wp-admin | 2,196 ▲19 | 5.53 ▼0.13 | 84.73 ▼17.02 | 38.59 ▼9.17 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.02 | 40.06 ▲4.45 | 35.06 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.95 ▼0.16 | 587.27 ▼101.92 | 52.92 ▼3.12 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▲0.02 | 98.50 ▲5.10 | 43.83 ▲1.23 |
Category Featured Image /wp-admin/edit.php?page=categoryfeaturedimage | 863 | 1.98 | 35.65 | 45.65 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-featured-image/lib/class-categoryfeaturedimageadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-featured-image/lib/class-categoryfeaturedimage.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-featured-image/lib/class-categoryfeaturedimage.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: post, featured image, category
category-featured-image/categoryfeaturedimage.php 92% from 13 tests
"Category Featured Image" version 2.08's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("category-featured-image.php" instead of "categoryfeaturedimage.php")
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 detected446 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 70 | 218 | 446 |
JavaScript | 1 | 0 | 3 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 63.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 36.84% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG files were detected