Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.68ms] Passed 4 tests
Analyzing server-side resources used by Oomph Plugin Notes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.14 ▼6.63 |
Dashboard /wp-admin | 3.33 ▼0.01 | 42.83 ▼19.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.91 ▲3.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 79.29 ▼5.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.03 ▲0.60 |
Server storage [IO: ▲0.01MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Oomph Plugin Notes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.19 | 1.89 ▲0.10 | 37.47 ▼9.17 |
Dashboard /wp-admin | 2,206 ▲21 | 5.92 ▲0.06 | 112.37 ▼3.92 | 42.80 ▼0.37 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.01 | 40.27 ▲2.63 | 35.58 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.43 ▲5.59 | 674.53 ▼31.89 | 47.92 ▼7.45 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▲0.02 | 98.36 ▼13.50 | 42.94 ▼5.43 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/oomph-plugin-notes/tests/bootstrap.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oomph-plugin-notes/oomph-plugin-notes.php:167
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/oomph-plugin-notes/tests/bootstrap.php on line 8
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
oomph-plugin-notes/oomph-plugin-notes.php Passed 13 tests
This is the main PHP file of "Oomph Plugin Notes" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Add usage notes to your plugins
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
Everything looks great! No dangerous files found in this plugin277 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 63 | 104 |
Bourne Shell | 1 | 20 | 6 | 94 |
JavaScript | 1 | 18 | 1 | 54 |
XML | 1 | 0 | 0 | 14 |
JSON | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin