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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.00ms] Passed 4 tests
Server-side resources used by Simple Post Notes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.44 ▼11.88 |
Dashboard /wp-admin | 3.40 ▲0.05 | 50.37 ▼16.69 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 54.94 ▲6.00 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.82 ▼4.72 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 37.69 ▲1.29 |
Post Notes /wp-admin/options-general.php?page=spnotes | 3.29 | 33.80 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
spnotes_settings |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Post Notes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.77 ▲0.39 | 1.61 ▼0.23 | 41.73 ▲2.95 |
Dashboard /wp-admin | 2,205 ▲28 | 5.54 ▼0.08 | 90.67 ▼5.22 | 42.47 ▼8.49 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.02 ▲0.08 | 36.13 ▼1.78 | 35.00 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6,230 ▲4,702 | 25.89 ▲2.79 | 995.75 ▲327.99 | 65.65 ▲2.64 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.32 ▲0.15 | 103.57 ▼0.85 | 47.11 ▲1.77 |
Post Notes /wp-admin/options-general.php?page=spnotes | 877 | 2.31 | 34.43 | 29.70 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-post-notes/simple-post-notes.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: page, informations, note, cpt, post...
simple-post-notes/simple-post-notes.php Passed 13 tests
The primary PHP file in "Simple Post Notes" version 1.7.6 is used by WordPress to initiate all plugin functionality
66 characters long description:
Adds simple notes to post, pages and custom post type edit screen.
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
Good job! No executable or dangerous file extensions detected439 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 160 | 166 | 278 |
PO File | 4 | 28 | 28 | 120 |
JavaScript | 2 | 18 | 1 | 40 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 25 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |