Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.18ms] Passed 4 tests
This is a short check of server-side resources used by Home Categories
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.06 ▼0.55 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.90 ▼0.42 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.89 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.57 ▲3.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.37 ▲3.45 |
Home Categories /wp-admin/options-general.php?page=home-categories/home-categories.php | 3.24 | 35.27 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Home Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲48 | 13.24 ▼1.05 | 1.71 ▼0.61 | 42.29 ▼6.19 |
Dashboard /wp-admin | 2,214 ▲23 | 4.89 ▼0.97 | 99.80 ▼7.43 | 36.55 ▼8.69 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.01 ▼0.00 | 38.86 ▼0.53 | 34.23 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.16 ▼0.19 | 665.45 ▼21.50 | 60.48 ▲10.10 |
Media Library /wp-admin/upload.php | 1,387 ▼1 | 4.19 ▲0.00 | 101.66 ▼4.75 | 43.59 ▲0.40 |
Home Categories /wp-admin/options-general.php?page=home-categories/home-categories.php | 796 | 2.04 | 25.59 | 29.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/home-categories/home-categories.php:54
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: "none"
home-categories/home-categories.php Passed 13 tests
This is the main PHP file of "Home Categories" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Filters the categories of posts shown on your front page.
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
Success! There were no dangerous files found in this plugin261 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 49 | 25 | 207 |
PO File | 1 | 17 | 27 | 43 |
CSS | 1 | 3 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 42.86% |
▷ Protected methods | 8 | 57.14% |
▷ Private methods | 0 | 0.00% |
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 images were found in this plugin