Benchmarks
Plugin footprint 83% from 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.09MB] [CPU: ▼15.63ms] Passed 4 tests
A check of server-side resources used by Encrypted Post Type
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.09 | 38.62 ▼0.26 |
Dashboard /wp-admin | 3.25 ▼0.05 | 29.73 ▼18.09 |
Posts /wp-admin/edit.php | 3.31 ▼0.04 | 31.97 ▼16.15 |
Add New Post /wp-admin/post-new.php | 5.61 ▼0.27 | 72.33 ▼22.99 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 28.30 ▼5.29 |
Add New /wp-admin/post-new.php?post_type=en_p_t | 5.61 | 71.10 |
Manage Tags /wp-admin/edit-tags.php?taxonomy=en_p_t_tag&post_type=en_p_t | 3.23 | 29.95 |
All Notes /wp-admin/edit.php?post_type=en_p_t | 3.30 | 29.61 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
en_p_t_ek_e |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Encrypted Post Type
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.22 ▼1.16 | 1.76 ▲0.08 | 43.62 ▲4.19 |
Dashboard /wp-admin | 2,242 ▲56 | 5.91 ▲0.96 | 97.57 ▼11.80 | 42.12 ▲0.41 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▲0.01 | 35.62 ▼4.49 | 35.84 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 23.34 ▲0.05 | 661.59 ▲81.63 | 46.15 ▼7.84 |
Media Library /wp-admin/upload.php | 1,417 ▲35 | 4.21 ▲0.01 | 98.09 ▼3.33 | 44.68 ▲0.59 |
Add New /wp-admin/post-new.php?post_type=en_p_t | 1,506 | 16.92 | 861.57 | 33.16 |
Manage Tags /wp-admin/edit-tags.php?taxonomy=en_p_t_tag&post_type=en_p_t | 1,270 | 2.14 | 30.26 | 30.74 |
All Notes /wp-admin/edit.php?post_type=en_p_t | 1,696 | 2.05 | 33.92 | 31.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- en_p_t_ek_e
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=en_p_t
- > Notice in wp-content/plugins/encrypted-post-type/inc/classes/class-register-post-type.php+235
Undefined variable: parent_file
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/encrypted-post-type/inc/classes/class-rest-posts-controller.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: security, privacy, encryption
encrypted-post-type/encrypted-post-type.php Passed 13 tests
The main PHP file in "Encrypted Post Type" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Encrypted Post Type provides a custom post type where the content of each post is encrypted.
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 detected640 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 481 | 425 | 572 |
CSS | 1 | 11 | 39 | 47 |
JavaScript | 1 | 18 | 26 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected