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.05MB] [CPU: ▼295.70ms] Passed 4 tests
This is a short check of server-side resources used by Custom Post Type eCards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 57.73 ▲5.20 |
Dashboard /wp-admin | 3.49 ▲0.08 | 40.72 ▲6.46 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 37.81 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 96.90 ▼1,184.32 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 25.16 ▼4.11 |
All ecards /wp-admin/edit.php?post_type=ecards | 3.41 | 25.87 |
Ecards Category /wp-admin/edit-tags.php?taxonomy=ecards-categories&post_type=ecards | 3.48 | 25.03 |
Add New /wp-admin/post-new.php?post_type=ecards | 3.75 | 46.62 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type eCards
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲119 | 16.22 ▲0.48 | 5.94 ▼0.09 | 2.13 ▼0.30 |
Dashboard /wp-admin | 2,946 ▲85 | 6.15 ▼0.01 | 117.68 ▼16.02 | 156.74 ▼5.02 |
Posts /wp-admin/edit.php | 2,747 ▲56 | 3.24 ▲0.01 | 63.80 ▲0.43 | 140.51 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,788 ▲127 | 21.69 ▲4.53 | 424.70 ▼0.54 | 153.67 ▼4.53 |
Media Library /wp-admin/upload.php | 1,755 ▲60 | 5.55 ▲0.06 | 141.49 ▼6.99 | 184.28 ▼9.45 |
All ecards /wp-admin/edit.php?post_type=ecards | 1,480 | 3.16 | 58.90 | 116.72 |
Ecards Category /wp-admin/edit-tags.php?taxonomy=ecards-categories&post_type=ecards | 1,678 | 2.76 | 55.32 | 112.91 |
Add New /wp-admin/post-new.php?post_type=ecards | 3,584 | 10.05 | 195.16 | 222.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-ecards/custom_type_post_ecards.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #5, #6, #7 in custom-post-type-ecards/assets to your readme.txt
custom-post-type-ecards/custom_type_post_ecards.php 85% from 13 tests
The principal PHP file in "Custom Post Type eCards" v. 1.0.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 ("custom-post-type-ecards.php" instead of "custom_type_post_ecards.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin237 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 4 | 24 | 237 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues 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 | 7 | |
▷ Named functions | 7 | 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
There are no PNG files in this plugin