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
Install script ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼10.39ms] Passed 4 tests
This is a short check of server-side resources used by Site Notes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.40 ▼3.49 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.48 ▲2.21 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.62 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 68.77 ▼37.13 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.65 ▼1.32 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_notes |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Site Notes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 14.28 ▼0.09 | 1.74 ▲0.15 | 40.04 ▲0.65 |
Dashboard /wp-admin | 2,312 ▲135 | 5.67 ▲0.00 | 90.66 ▲0.47 | 42.48 ▲1.68 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▲0.04 | 39.26 ▼2.27 | 37.23 ▲0.93 |
Add New Post /wp-admin/post-new.php | 6,220 ▲4,694 | 25.94 ▲2.55 | 895.44 ▲172.37 | 54.11 ▼9.25 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.23 ▲0.03 | 94.98 ▼1.80 | 41.20 ▼2.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_notes
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- admin_bar_notes
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/site-notes/site-notes.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: notes, pages, posts
site-notes/site-notes.php Passed 13 tests
The main PHP file in "Site Notes" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
A plugin that adds a note box to your posts and pages which can be viewed in the admin bar
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
There were no executable files found in this plugin417 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 43 | 257 |
CSS | 1 | 3 | 1 | 87 |
JavaScript | 1 | 17 | 6 | 73 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 12 | |
▷ Named functions | 12 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin