90% notes

Code Review | Notes

WordPress plugin Notes scored90%from 54 tests.

About plugin

  • Plugin page: notes
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 1, 2020
  • Latest release: Jan 1, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.32ms] Passed 4 tests

A check of server-side resources used by Notes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.70 ▼13.09
Dashboard /wp-admin3.33 ▼0.0253.81 ▼7.29
Posts /wp-admin/edit.php3.38 ▲0.0248.65 ▼4.76
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.25 ▼24.15
Media Library /wp-admin/upload.php3.25 ▲0.0237.27 ▲0.30

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Notes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲8414.63 ▲0.511.78 ▼0.1843.59 ▲0.12
Dashboard /wp-admin2,264 ▲905.84 ▲0.2391.69 ▲2.6537.56 ▼2.18
Posts /wp-admin/edit.php2,130 ▲272.20 ▲0.1936.28 ▼3.6232.24 ▼1.11
Add New Post /wp-admin/post-new.php1,554 ▲2823.34 ▼0.15685.39 ▲72.8061.95 ▲3.44
Media Library /wp-admin/upload.php1,427 ▲274.28 ▲0.0997.25 ▼11.0141.63 ▼3.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: notes, note, wordpress note, wordpress notes, admin notes

notes/notes.php Passed 13 tests

"Notes" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Displays notes on the WordPress dashboard. When the date of the event has occurred, the note is colored red.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,452 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS260481,319
PHP1112989
PO File18940
JavaScript1304

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.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png11.25KB4.39KB▼ 60.99%