Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼137.08ms] 75% from 4 tests
Server-side resources used by Identity
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 4,086.48ms on /wp-admin/admin.php?page=mfmmf)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.32 | 37.27 ▲17.97 |
Dashboard /wp-admin | 3.34 ▲0.28 | 52.66 ▲7.88 |
Posts /wp-admin/edit.php | 3.39 ▲0.27 | 46.79 ▲3.75 |
Add New Post /wp-admin/post-new.php | 5.63 ▲0.19 | 93.24 ▼561.67 |
Media Library /wp-admin/upload.php | 3.22 ▲0.21 | 35.09 ▲1.74 |
ManFisher /wp-admin/admin.php?page=mfmmf | 3.20 | 4,086.48 |
Diagnostics /wp-admin/admin.php?page=mfmmf-diagnostics | 3.19 | 31.14 |
Identity /wp-admin/admin.php?page=mfmmf-identity | 3.19 | 39.28 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Identity
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,724 ▲128 | 15.92 ▲0.32 | 8.13 ▼0.78 | 50.59 ▲3.06 |
Dashboard /wp-admin | 3,004 ▲70 | 5.93 ▼0.02 | 138.62 ▼0.01 | 141.41 ▲21.72 |
Posts /wp-admin/edit.php | 2,798 ▲59 | 2.72 ▲0.00 | 62.85 ▼5.53 | 88.87 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,900 ▲374 | 19.21 ▲0.63 | 375.18 ▼8.83 | 108.23 ▲1.68 |
Media Library /wp-admin/upload.php | 1,789 ▼18 | 5.03 ▲0.00 | 126.06 ▼28.55 | 147.23 ▲27.06 |
ManFisher /wp-admin/admin.php?page=mfmmf | 1,116 | 2.06 | 54.10 | 87.45 |
Diagnostics /wp-admin/admin.php?page=mfmmf-diagnostics | 1,305 | 2.99 | 62.63 | 87.20 |
Identity /wp-admin/admin.php?page=mfmmf-identity | 1,725 | 3.33 | 83.80 | 85.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'MCI_Identity_LayoutEngine' not found in wp-content/plugins/identity/class/dashboard/subpage-diagnostics.php:16
- > PHP Fatal error
Uncaught Error: Class 'MCI_Identity_LayoutEngine' not found in wp-content/plugins/identity/class/dashboard/subpage-main.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/identity/identity.php:42
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== identity ===
)
identity/identity.php Passed 13 tests
The main PHP script in "Identity" version 1.0.4 is automatically included on every request by WordPress
53 characters long description:
define and customize your personal CI on public pages
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 detected1,027 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 186 | 1,065 | 821 |
HTML | 4 | 6 | 1 | 177 |
CSS | 2 | 8 | 13 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 12 | 14.63% |
▷ Public methods | 45 | 54.88% |
▷ Protected methods | 23 | 28.05% |
▷ Private methods | 14 | 17.07% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/main-menu.png | 1.94KB | 0.77KB | ▼ 60.25% |