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.07MB] [CPU: ▼147.67ms] Passed 4 tests
An overview of server-side resources used by Plugin Info Cards
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 35.94 ▲1.45 |
Dashboard /wp-admin | 3.13 ▲0.08 | 46.31 ▼4.12 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 45.80 ▼5.06 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 100.70 ▼573.17 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 35.65 ▼8.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Plugin Info Cards: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲133 | 15.94 ▲0.17 | 9.57 ▼4.62 | 49.91 ▲2.07 |
Dashboard /wp-admin | 2,967 ▲36 | 5.92 ▼0.03 | 148.08 ▼2.34 | 111.83 ▲0.32 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 75.12 ▲6.28 | 83.18 ▼11.69 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.74 ▼0.02 | 422.03 ▼0.93 | 108.02 ▼2.02 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.02 | 168.28 ▲2.25 | 116.51 ▼6.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/plugin-info-cards/includes/class-plugin-info-cards.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
3 plugin tags: info, cards, plugin
plugin-info-cards/plugin-info-cards.php Passed 13 tests
"Plugin Info Cards" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
53 characters long description:
Adds shortcode to display plugin info for given slugs
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected535 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 58 | 305 | 353 |
Sass | 2 | 33 | 0 | 181 |
CSS | 1 | 0 | 1 | 1 |
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.37 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin