Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼138.89ms] Passed 4 tests
This is a short check of server-side resources used by LH Taxonomy Pinned Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 35.20 ▲14.55 |
Dashboard /wp-admin | 3.11 ▲0.06 | 52.12 ▲2.32 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 43.79 ▼2.25 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.12 | 95.57 ▼558.44 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 38.62 ▲2.83 |
Pinnable Posts /wp-admin/edit.php?post_type=lh_tpps-post_type | 3.10 | 34.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by LH Taxonomy Pinned Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,692 ▲96 | 16.27 ▲0.68 | 8.31 ▼2.25 | 53.77 ▼0.79 |
Dashboard /wp-admin | 2,982 ▲45 | 5.91 ▼0.02 | 146.56 ▼9.42 | 116.88 ▲9.90 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.69 ▲0.00 | 71.17 ▲3.05 | 86.55 ▼10.82 |
Add New Post /wp-admin/post-new.php | 1,504 ▼179 | 18.82 ▲0.09 | 390.80 ▼8.38 | 109.93 ▼4.04 |
Media Library /wp-admin/upload.php | 1,819 ▲9 | 5.02 ▲0.01 | 157.39 ▼5.07 | 126.52 ▼1.76 |
Pinnable Posts /wp-admin/edit.php?post_type=lh_tpps-post_type | 1,417 | 2.62 | 64.41 | 75.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: sticky, pinned, post, categories, archive...
lh-taxonomy-pinned-posts/lh-taxonomy-pinned-posts.php 85% from 13 tests
This is the main PHP file of "LH Taxonomy Pinned Posts" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected187 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 178 | 48 | 187 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 16 | |
▷ Static methods | 7 | 43.75% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
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
There are no PNG files in this plugin