Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼171.95ms] Passed 4 tests
A check of server-side resources used by CFS Custom Category Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 36.37 ▲13.64 |
Dashboard /wp-admin | 3.14 ▲0.08 | 44.28 ▲0.17 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 44.69 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 79.73 ▼687.17 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 31.36 ▼1.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for CFS Custom Category Fields
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,714 ▲118 | 15.82 ▲0.12 | 8.83 ▼0.48 | 46.74 ▼0.67 |
Dashboard /wp-admin | 2,984 ▲53 | 5.95 ▼0.01 | 134.21 ▼3.85 | 108.23 ▼11.74 |
Posts /wp-admin/edit.php | 2,750 ▲14 | 2.72 ▼0.00 | 60.94 ▼0.77 | 86.06 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,679 ▼4 | 18.71 ▼0.03 | 378.87 ▲12.40 | 106.67 ▼1.56 |
Media Library /wp-admin/upload.php | 1,818 ▲11 | 5.04 ▼0.04 | 144.39 ▼1.87 | 116.19 ▲7.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | 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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cfs-custom-category-fields/cfs-taxonomy.php:364
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cfs-custom-category-fields/trunk/cfs-taxonomy.php:364
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: custom field suite addon, category custom fields, category meta data
cfs-custom-category-fields/cfs-taxonomy.php 92% from 13 tests
The entry point to "CFS Custom Category Fields" version 1.3.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cfs-custom-category-fields.php" instead of "cfs-taxonomy.php")
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
Good job! No executable or dangerous file extensions detected360 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 92 | 357 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 48 | 85.71% |
▷ Public methods | 48 | 85.71% |
▷ Protected methods | 8 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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