Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼15.13ms] Passed 4 tests
A check of server-side resources used by Promote My Extensions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.31 ▼7.79 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.17 ▼4.16 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.37 ▼0.95 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.01 ▼47.62 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.41 ▲4.84 |
Add New My Extension /wp-admin/post-new.php?post_type=gs_pmp_extension | 3.54 | 54.95 |
Documentation /wp-admin/edit.php?post_type=gs_pmp_documentation | 3.41 | 36.61 |
My Extensions /wp-admin/edit.php?post_type=gs_pmp_extension | 3.41 | 36.12 |
New Documentation /wp-admin/post-new.php?post_type=gs_pmp_documentation | 3.53 | 53.39 |
Plugin Categories /wp-admin/edit-tags.php?taxonomy=gs_pmp_category&post_type=gs_pmp_extension | 3.36 | 34.25 |
Documentation Categories /wp-admin/edit-tags.php?taxonomy=gs_pmp_documentation_cat&post_type=gs_pmp_documentation | 3.36 | 41.54 |
Settings /wp-admin/edit.php?post_type=gs_pmp_extension&page=promote_my_extensions | 3.38 | 31.39 |
Server storage [IO: ▲0.04MB] [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: 11 new files
Database: no new tables, 24 new options
New WordPress options |
---|
gs_pmp_index_slug |
widget_recent-comments |
can_compress_scripts |
gs_pmp_singular_label |
gs_pmp_use_reviews |
gs_pmp_display_order |
theysaidso_admin_options |
gs_pmp_use_faq |
widget_theysaidso_widget |
gs_pmp_use_trackbacks |
... |
Browser metrics Passed 4 tests
Promote My Extensions: 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 / | 2,885 ▲150 | 13.26 ▼1.11 | 1.84 ▲0.19 | 41.33 ▲2.50 |
Dashboard /wp-admin | 2,260 ▲80 | 5.79 ▲0.88 | 99.65 ▼51.42 | 38.69 ▼4.80 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.05 ▲0.05 | 35.10 ▼2.12 | 31.32 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,573 ▲39 | 23.27 ▲0.12 | 653.68 ▼31.32 | 53.49 ▼17.12 |
Media Library /wp-admin/upload.php | 1,436 ▲48 | 4.24 ▲0.03 | 93.01 ▼71.75 | 41.85 ▼14.87 |
Add New My Extension /wp-admin/post-new.php?post_type=gs_pmp_extension | 2,940 | 7.95 | 189.60 | 77.37 |
Documentation /wp-admin/edit.php?post_type=gs_pmp_documentation | 1,166 | 1.94 | 28.94 | 31.12 |
My Extensions /wp-admin/edit.php?post_type=gs_pmp_extension | 1,163 | 1.94 | 29.82 | 31.32 |
New Documentation /wp-admin/post-new.php?post_type=gs_pmp_documentation | 2,828 | 7.71 | 168.84 | 58.90 |
Plugin Categories /wp-admin/edit-tags.php?taxonomy=gs_pmp_category&post_type=gs_pmp_extension | 1,319 | 2.14 | 29.06 | 27.69 |
Documentation Categories /wp-admin/edit-tags.php?taxonomy=gs_pmp_documentation_cat&post_type=gs_pmp_documentation | 1,318 | 2.14 | 26.64 | 29.60 |
Settings /wp-admin/edit.php?post_type=gs_pmp_extension&page=promote_my_extensions | 1,128 | 2.03 | 22.78 | 30.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 24 options
- gs_pmp_use_faq
- gs_pmp_use_donate
- gs_pmp_use_trackbacks
- gs_pmp_use_excerpt
- gs_pmp_use_comments
- gs_pmp_use_revisions
- can_compress_scripts
- db_upgraded
- gs_pmp_plural_label
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/promote-my-extensions/includes/plugin-details-display.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/promote-my-extensions/includes/plugin-details-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/promote-my-extensions/admin/init.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/promote-my-extensions/admin/plugin-post-type-documentation.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/promote-my-extensions/includes/admin-footer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/promote-my-extensions/admin/init.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/promote-my-extensions/admin/plugin-post-type.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gs_pmp_extension&page=promote_my_extensions
- > Network (severe)
wp-content/plugins/promote-my-extensions/js/admin.js?ver=1670705964 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 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
2 plugin tags: developer, plugins
promote-my-extensions/promote-my-plugins.php 69% from 13 tests
The main PHP script in "Promote My Extensions" version 0.4.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("promote-my-extensions.php" instead of "promote-my-plugins.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "5.2")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin681 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 123 | 109 | 676 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
No PNG images were found in this plugin