10% nutnote

Code Review | NutNote for wordpresss

WordPress plugin NutNote for wordpresss scored10%from 54 tests.

About plugin

  • Plugin page: nutnote
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.2.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2015
  • Latest release: Jun 29, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: nutnote (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /620 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.196.00 ▼32.66
Dashboard /wp-admin2.29 ▼1.017.66 ▼41.40
Posts /wp-admin/edit.php2.29 ▼1.066.53 ▼45.34
Add New Post /wp-admin/post-new.php2.29 ▼3.598.45 ▼97.61
Media Library /wp-admin/upload.php2.29 ▼0.937.73 ▼25.30
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page2.307.41
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page2.306.79
NutNote /wp-admin/options-general.php?page=json-api2.307.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.75 ▲0.181.93 ▲0.3543.41 ▼1.54
Dashboard /wp-admin2,214 ▲465.58 ▼0.1089.12 ▼0.4838.08 ▼7.79
Posts /wp-admin/edit.php2,122 ▲192.01 ▲0.0241.32 ▼3.9835.76 ▼1.76
Add New Post /wp-admin/post-new.php6,260 ▲4,73418.67 ▼2.29891.23 ▲193.2162.15 ▲8.76
Media Library /wp-admin/upload.php1,422 ▲194.13 ▼0.1799.41 ▲0.5139.68 ▼3.65
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4742.3029.1233.37
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3352.2929.1830.23
NutNote /wp-admin/options-general.php?page=json-api8162.0225.0227.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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP155828822,638
CSS220322613
JavaScript1402997

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 code0.41
Average class complexity32.07
▷ Minimum class complexity1.00
▷ Maximum class complexity127.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods167
▷ Static methods00.00%
▷ Public methods15190.42%
▷ Protected methods127.19%
▷ Private methods42.40%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants1191.67%
▷ Class constants18.33%
▷ Public constants1100.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