Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.06ms] Passed 4 tests
This is a short check of server-side resources used by Custom category and page extensions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.12 ▼4.81 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.28 ▼1.82 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.72 ▲6.79 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.82 ▼16.38 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.23 ▲7.64 |
Custom category and page extensions /wp-admin/options-general.php?page=hit-wp-ccpe | 3.25 | 35.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
ccpe_extension_to_use |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom category and page extensions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.10 | 1.81 ▲0.01 | 44.39 ▼0.93 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▼0.99 | 103.12 ▼14.62 | 38.14 ▼2.93 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.04 | 36.39 ▼1.05 | 33.28 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.46 ▲0.29 | 660.59 ▲49.57 | 62.38 ▲10.24 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▲0.01 | 96.08 ▲1.26 | 43.91 ▲1.94 |
Custom category and page extensions /wp-admin/options-general.php?page=hit-wp-ccpe | 806 | 2.02 | 26.41 | 28.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- ccpe_extension_to_use
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-category-and-page-extensions/hit-wp-ccpe.php
- 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/custom-category-and-page-extensions/inc/ccpe-admin-interface.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-category-and-page-extensions/inc/hit-plugin-core.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: No valid plugin tags found
- Contributors: Plugin contributors not specified
custom-category-and-page-extensions/hit-wp-ccpe.php 77% from 13 tests
"Custom category and page extensions" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-category-and-page-extensions.php" instead of "hit-wp-ccpe.php")
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected201 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 27 | 130 | 178 |
Markdown | 1 | 20 | 0 | 23 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected