Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.10ms] Passed 4 tests
A check of server-side resources used by Advanced Term Fields: Locks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.08 ▼1.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.82 ▼5.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.03 ▲3.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.79 ▼31.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.40 ▲2.34 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Advanced Term Fields: Locks: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.36 ▲0.22 | 1.54 ▼0.63 | 41.56 ▼3.45 |
Dashboard /wp-admin | 2,195 ▲24 | 5.60 ▲0.03 | 94.81 ▲4.23 | 43.90 ▲1.10 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.00 | 40.18 ▲0.66 | 39.65 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.46 ▼4.72 | 625.47 ▼78.03 | 65.50 ▲9.11 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.02 | 95.44 ▼21.95 | 43.70 ▼8.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-term-fields-locks/views/inner-edit-form-field.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-term-fields-locks/views/inner-add-form-field.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: termmeta, term_meta, meta, metadata, lock...
advanced-term-fields-locks/advanced-term-fields-locks.php 92% from 13 tests
The entry point to "Advanced Term Fields: Locks" version 0.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin409 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 161 | 561 | 355 |
Markdown | 1 | 24 | 0 | 34 |
CSS | 1 | 0 | 0 | 15 |
JavaScript | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There were not PNG files found in your plugin