Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼262.47ms] Passed 4 tests
Analyzing server-side resources used by Limit taxonomy term count
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 32.11 ▼1.22 |
Dashboard /wp-admin | 3.08 ▲0.03 | 39.28 ▼5.33 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 44.45 ▲1.75 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.02 | 90.87 ▼1,039.22 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.52 ▼4.09 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Limit taxonomy term count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,656 ▲50 | 16.07 ▲0.55 | 8.58 ▲0.39 | 48.17 ▼1.53 |
Dashboard /wp-admin | 2,940 ▲90 | 6.23 ▲0.25 | 142.73 ▲10.22 | 98.21 ▼3.32 |
Posts /wp-admin/edit.php | 2,710 ▲4 | 2.95 ▲0.28 | 64.56 ▼2.78 | 88.46 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,659 ▲180 | 19.02 ▲0.88 | 372.91 ▲6.54 | 102.91 ▲0.93 |
Media Library /wp-admin/upload.php | 1,776 ▲4 | 5.41 ▲0.41 | 158.86 ▲3.96 | 117.45 ▲4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limit-taxonomy-term-count/limit-taxonomy-term-count.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Shows selecting a tag when limit is set to 1.), #2 (Shows selecting a tag when limit is set to 2.)
limit-taxonomy-term-count/limit-taxonomy-term-count.php Passed 13 tests
This is the main PHP file of "Limit taxonomy term count" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Allows the use of the "limit" argument when calling register_taxonomy
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 detected123 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 55 | 99 |
JavaScript | 2 | 8 | 3 | 23 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.png | 5.18KB | 2.88KB | ▼ 44.45% |
screenshot1.png | 4.62KB | 2.61KB | ▼ 43.59% |