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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.40ms] Passed 4 tests
Server-side resources used by I'm A Plugin Developer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.84 ▼7.37 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.33 ▼4.04 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.52 ▼8.06 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 89.11 ▼10.12 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.64 ▲4.85 |
Add New /wp-admin/post-new.php?post_type=my-plugin | 3.23 | 35.14 |
All My Plugins /wp-admin/edit.php?post_type=my-plugin | 3.35 | 40.43 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
I'm A Plugin Developer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.24 ▼1.41 | 4.66 ▲2.73 | 43.26 ▼2.71 |
Dashboard /wp-admin | 2,230 ▲45 | 5.90 ▲0.05 | 109.20 ▼7.61 | 39.19 ▼10.88 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▲0.08 | 41.99 ▲6.37 | 34.86 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.13 ▲5.67 | 656.22 ▲3.57 | 69.74 ▲14.88 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.31 ▲0.05 | 96.32 ▼7.13 | 40.19 ▼4.51 |
Add New /wp-admin/post-new.php?post_type=my-plugin | 1,474 | 2.55 | 50.30 | 55.60 |
All My Plugins /wp-admin/edit.php?post_type=my-plugin | 1,089 | 1.94 | 31.07 | 32.58 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=my-plugin
- > Notice in wp-content/plugins/ima-plugdev/functions/plugin-post-meta.php+36
Undefined index: _ima_plugdev_nonce
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 ima_plugdev_add_posttype() in wp-content/plugins/ima-plugdev/activate/post-type.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ima-plugdev/functions/plugin-post-meta.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function have_ima_plugdev_plugin_logo() in wp-content/plugins/ima-plugdev/templates/excerpt-my-plugin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ima-plugdev/functions/post-type.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function have_ima_plugdev_plugin_banner() in wp-content/plugins/ima-plugdev/templates/content-my-plugin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ima-plugdev/ima-plugdev.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ima-plugdev/partials/plugin-content.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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: plugin, wordpressorg, repository
ima-plugdev/ima-plugdev.php Passed 13 tests
The primary PHP file in "I'm A Plugin Developer" version 2.2.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Showcase the plugins you have in the WordPress.org Plugin Directory
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin348 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 35 | 14 | 332 |
CSS | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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