Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.29ms] Passed 4 tests
Analyzing server-side resources used by Single Page Per Category
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.71 ▼3.17 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.30 ▼0.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.83 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.52 ▼19.83 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.67 ▲2.05 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
single_page_per_category_version |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Single Page Per Category
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.08 | 1.72 ▼0.01 | 44.44 ▲1.86 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▼0.08 | 85.72 ▼3.02 | 40.48 ▼2.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 35.76 ▼5.61 | 35.66 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 18.45 ▼4.68 | 639.75 ▲32.73 | 71.56 ▲20.75 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▲0.01 | 99.82 ▼1.89 | 42.12 ▼3.16 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- single_page_per_category_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: wordpress, plugin, template
single-page-per-category/single-page-per-category.php Passed 13 tests
"Single Page Per Category" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
This plugin enables themes to use custom single.php pages for categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin47 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 21 | 80 | 47 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin