Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼135.56ms] Passed 4 tests
This is a short check of server-side resources used by People Profile CPT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 34.04 ▲13.38 |
Dashboard /wp-admin | 3.13 ▲0.07 | 50.13 ▲15.83 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 46.87 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 89.16 ▼553.71 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 32.88 ▼1.87 |
All People /wp-admin/edit.php?post_type=people | 3.11 | 33.73 |
Add New /wp-admin/post-new.php?post_type=people | 3.20 | 52.61 |
People Categories /wp-admin/edit-tags.php?taxonomy=people_category&post_type=people | 3.07 | 32.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
People Profile CPT: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.78 ▲0.18 | 8.55 ▼3.32 | 53.95 ▲3.47 |
Dashboard /wp-admin | 3,010 ▲76 | 5.86 ▼0.26 | 143.95 ▼9.27 | 105.02 ▲0.47 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.72 ▼0.01 | 66.35 ▼0.66 | 87.27 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,898 ▲215 | 19.31 ▲1.26 | 411.33 ▼9.55 | 108.35 ▼0.70 |
Media Library /wp-admin/upload.php | 1,773 ▼34 | 5.02 ▼0.03 | 153.75 ▼5.86 | 110.04 ▼13.91 |
All People /wp-admin/edit.php?post_type=people | 1,462 | 2.62 | 72.76 | 73.10 |
Add New /wp-admin/post-new.php?post_type=people | 3,795 | 9.07 | 228.56 | 147.47 |
People Categories /wp-admin/edit-tags.php?taxonomy=people_category&post_type=people | 1,794 | 2.37 | 59.97 | 75.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/people-profile-cpt/people-profile-cpt.php:46
- > 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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png displays the "Add New People" section), #2 (screenshot-2.png displays all the entries for "People" post type), #3 (screenshot-3.png displays the "People Category" section)
people-profile-cpt/people-profile-cpt.php Passed 13 tests
The entry point to "People Profile CPT" version 1.1 is a PHP file that has certain tags in its header comment area
34 characters long description:
Creates "People" custom post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin207 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 30 | 207 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 16.66KB | 15.76KB | ▼ 5.38% |
screenshot-3.png | 15.85KB | 15.06KB | ▼ 4.97% |
screenshot-2.png | 11.28KB | 10.57KB | ▼ 6.23% |