Benchmarks
Plugin footprint 83% from 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.06MB] [CPU: ▼1.39ms] Passed 4 tests
Server-side resources used by Advance User Post CRUD
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.60 ▼4.37 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.57 ▼0.78 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.92 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 98.22 ▼2.10 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.88 ▲1.70 |
/wp-admin/admin.php?page=adv-user-crud | 3.25 | 30.64 |
Advance user post CRUD /wp-admin/options-general.php?page=adv-user-crud-post-count | 3.25 | 34.28 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Advance User Post CRUD: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲151 | 13.25 ▼1.04 | 1.86 ▼0.03 | 29.05 ▼26.12 |
Dashboard /wp-admin | 2,284 ▲96 | 5.82 ▼0.05 | 103.92 ▲6.03 | 41.08 ▼2.05 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.02 | 39.02 ▼2.61 | 34.17 ▼4.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.34 ▲0.27 | 597.35 ▼72.36 | 74.60 ▲22.18 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▼0.00 | 96.16 ▼2.49 | 42.02 ▼2.11 |
/wp-admin/admin.php?page=adv-user-crud | 749 | 2.02 | 22.99 | 18.75 |
Advance user post CRUD /wp-admin/options-general.php?page=adv-user-crud-post-count | 791 | 2.05 | 23.59 | 25.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% 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
4 plugin tags: count user posts, post type post count, published post, count user pages
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
You should first fix the following items:
- Main file name: Name the main plugin file 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 not allowed as they can serve as attack vectors
No dangerous file extensions were detected385 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
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 images were found in this plugin