Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/nutnote/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼54.25ms] Passed 4 tests
This is a short check of server-side resources used by NutNote for wordpresss
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.19 | 6.00 ▼32.66 |
Dashboard /wp-admin | 2.29 ▼1.01 | 7.66 ▼41.40 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 6.53 ▼45.34 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 8.45 ▼97.61 |
Media Library /wp-admin/upload.php | 2.29 ▼0.93 | 7.73 ▼25.30 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 2.30 | 7.41 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 2.30 | 6.79 |
NutNote /wp-admin/options-general.php?page=json-api | 2.30 | 7.84 |
Server storage [IO: ▲0.19MB] [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: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
category_children |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NutNote for wordpresss
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.75 ▲0.18 | 1.93 ▲0.35 | 43.41 ▼1.54 |
Dashboard /wp-admin | 2,214 ▲46 | 5.58 ▼0.10 | 89.12 ▼0.48 | 38.08 ▼7.79 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 2.01 ▲0.02 | 41.32 ▼3.98 | 35.76 ▼1.76 |
Add New Post /wp-admin/post-new.php | 6,260 ▲4,734 | 18.67 ▼2.29 | 891.23 ▲193.21 | 62.15 ▲8.76 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.13 ▼0.17 | 99.41 ▲0.51 | 39.68 ▼3.65 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page | 1,474 | 2.30 | 29.12 | 33.37 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page | 1,335 | 2.29 | 29.18 | 30.23 |
NutNote /wp-admin/options-general.php?page=json-api | 816 | 2.02 | 25.02 | 27.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/nutnote/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- category_children
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/nutnote/models/post.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Post has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/nutnote/models/comment.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Comment has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/nutnote/models/category.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Category has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/nutnote/models/tag.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Tag has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/nutnote/models/author.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Author has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=json-api
- > Deprecated in wp-content/plugins/nutnote/models/attachment.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; JSON_API_Attachment has a deprecated constructor
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors not specified
nutnote/nutnote.php Passed 13 tests
Analyzing the main PHP file in "NutNote for wordpresss" version 1.1.2
28 characters long description:
Nutnote plugin for wordpress
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 plugin3,348 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 582 | 882 | 2,638 |
CSS | 2 | 203 | 22 | 613 |
JavaScript | 1 | 40 | 29 | 97 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 32.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 151 | 90.42% |
▷ Protected methods | 12 | 7.19% |
▷ Private methods | 4 | 2.40% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.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
No PNG files were detected