Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼292.20ms] Passed 4 tests
An overview of server-side resources used by Note Press
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 67.24 ▲17.06 |
Dashboard /wp-admin | 3.48 ▲0.08 | 33.74 ▲0.73 |
Posts /wp-admin/edit.php | 3.70 ▲0.07 | 36.68 ▼0.44 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 94.27 ▼1,160.37 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 22.62 ▼8.70 |
Note Press Settings /wp-admin/admin.php?page=Note-Press-Settings | 3.38 | 22.63 |
Note Press /wp-admin/admin.php?page=Note_Press-Main-Menu | 3.76 | 26.80 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 155 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_Note_Press |
New WordPress options |
---|
Note_Press_icons_url |
Note_Press_icons_path |
Note_Press_db_version |
Note_Press_Args |
Browser metrics Passed 4 tests
An overview of browser requirements for Note Press
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,858 ▲105 | 15.95 ▲0.16 | 6.24 ▲0.17 | 2.67 ▲0.06 |
Dashboard /wp-admin | 2,994 ▲133 | 6.84 ▲0.65 | 113.93 ▼16.59 | 178.44 ▲23.39 |
Posts /wp-admin/edit.php | 2,743 ▲52 | 3.24 ▲0.00 | 66.01 ▲4.89 | 153.79 ▲13.91 |
Add New Post /wp-admin/post-new.php | 1,703 ▼49 | 16.52 ▼5.07 | 387.20 ▼37.23 | 207.69 ▲47.56 |
Media Library /wp-admin/upload.php | 1,751 ▲50 | 6.00 ▲0.55 | 112.84 ▼29.15 | 194.10 ▲3.07 |
Note Press Settings /wp-admin/admin.php?page=Note-Press-Settings | 1,167 | 3.15 | 56.69 | 118.45 |
Note Press /wp-admin/admin.php?page=Note_Press-Main-Menu | 1,301 | 3.05 | 57.17 | 113.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/note-press/uninstall.php+73
Undefined variable: wpdb
- Zombie WordPress options detected upon uninstall: 3 options
- Note_Press_icons_path
- Note_Press_Args
- Note_Press_icons_url
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=Note_Press-Main-Menu
- > Notice in wp-content/plugins/note-press/admin/Note_Press-admin-menu.php+1121
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Note_Press-Main-Menu
- > Notice in wp-content/plugins/note-press/admin/Note_Press-admin-menu.php+441
Undefined variable: example_data
- > GET request to /wp-admin/admin.php?page=Note_Press-Main-Menu
- > Warning in wp-content/plugins/note-press/admin/Note_Press-admin-menu.php+432
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/note-press/admin/partials/Note_Presss-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/note-press/admin/views/admin.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
6 plugin tags: note, collaboration, clients, notepad, developer notes...
note-press/Note_Press.php 85% from 13 tests
"Note Press" version 0.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("note-press.php" instead of "Note_Press.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
Good job! No executable or dangerous file extensions detected2,089 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 205 | 556 | 1,746 |
PO File | 2 | 127 | 151 | 321 |
XML | 2 | 0 | 0 | 9 |
CSS | 2 | 0 | 1 | 8 |
JavaScript | 2 | 2 | 2 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 36 | 87.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.20% |
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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
115 PNG files occupy 1.01MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/icons/cost.png | 0.58KB | 0.73KB | 0.00% |
public/icons/advertisment.png | 0.26KB | 0.26KB | ▼ 2.58% |
assets/icon-256x256.png | 99.25KB | 9.72KB | ▼ 90.21% |
public/icons/sign-up.png | 0.48KB | 0.56KB | 0.00% |
admin/images/P0.png | 52.70KB | 0.34KB | ▼ 99.35% |