Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼147.67ms] Passed 4 tests
Server-side resources used by Advance User Post CRUD
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 30.45 ▲7.99 |
Dashboard /wp-admin | 3.08 ▲0.01 | 36.48 ▼3.30 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 30.36 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 71.83 ▼585.29 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 22.97 ▲0.38 |
/wp-admin/admin.php?page=adv-user-crud | 2.99 | 18.82 |
Advance user post CRUD /wp-admin/options-general.php?page=adv-user-crud-post-count | 2.99 | 26.87 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advance User Post CRUD: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲190 | 15.59 ▼0.41 | 5.44 ▼0.23 | 73.80 ▲1.42 |
Dashboard /wp-admin | 3,052 ▲160 | 6.11 ▼0.07 | 118.25 ▼16.39 | 185.48 ▲7.78 |
Posts /wp-admin/edit.php | 2,744 ▲7 | 3.35 ▲0.11 | 62.64 ▼2.73 | 138.63 ▼6.85 |
Add New Post /wp-admin/post-new.php | 3,740 ▼4 | 17.60 ▼0.63 | 465.71 ▲42.51 | 165.56 ▼1.40 |
Media Library /wp-admin/upload.php | 1,759 ▲10 | 5.51 ▲0.03 | 143.86 ▲0.69 | 188.44 ▲4.09 |
/wp-admin/admin.php?page=adv-user-crud | 1,009 | 2.39 | 54.18 | 87.92 |
Advance user post CRUD /wp-admin/options-general.php?page=adv-user-crud-post-count | 1,077 | 2.38 | 53.86 | 101.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: count user posts, post type post count, count user pages, published post
advance-user-post-crud/custom-post-count.php 92% from 13 tests
The principal PHP file in "Advance User Post CRUD" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advance-user-post-crud.php" instead of "custom-post-count.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin385 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 39 | 126 | 294 |
CSS | 1 | 0 | 0 | 91 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected