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.04MB] [CPU: ▼5.97ms] Passed 4 tests
This is a short check of server-side resources used by WP Term Locks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 51.68 ▲8.38 |
Dashboard /wp-admin | 3.35 ▲0.04 | 52.18 ▲1.80 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.76 ▼3.66 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.40 ▼19.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.46 ▼2.71 |
Server storage [IO: ▲0.02MB] [DB: ▲0.31MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
wpdb_term_locks_version |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Term Locks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.08 | 1.77 ▼0.05 | 41.74 ▼1.47 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▲0.03 | 89.46 ▼8.42 | 39.75 ▼6.43 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.01 | 35.92 ▲0.82 | 33.71 ▼5.24 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.18 ▼4.84 | 610.24 ▼56.30 | 65.46 ▲2.79 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.01 | 100.25 ▼7.18 | 45.19 ▼0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- wpdb_term_locks_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 shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 93% 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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Category Locks) image not found
wp-term-locks/wp-term-locks.php 92% from 13 tests
"WP Term Locks" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/wp-term-locks/assets/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin392 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 166 | 427 | 392 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 3 | 8.82% |
▷ Private methods | 2 | 5.88% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin