90% admin-sticky-notes

Code Review | ASN(Admin Sticky Notes)

WordPress plugin ASN(Admin Sticky Notes) scored90%from 54 tests.

About plugin

  • Plugin page: admin-sticky-notes
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2017
  • Latest release: Jan 9, 2018
  • Number of updates: 8
  • Update frequency: every 1.4 days
  • Top authors: fgirach09 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by ASN(Admin Sticky Notes)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.38 ▲2.59
Dashboard /wp-admin3.31 ▲0.0148.68 ▼2.10
Posts /wp-admin/edit.php3.37 ▲0.0147.04 ▲0.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.21 ▼13.62
Media Library /wp-admin/upload.php3.24 ▲0.0138.46 ▲5.13

Server storage [IO: ▲0.20MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ASN(Admin Sticky Notes)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.74 ▲0.121.90 ▲0.1047.61 ▲5.82
Dashboard /wp-admin2,226 ▲494.96 ▼0.6988.43 ▲1.9938.51 ▼8.03
Posts /wp-admin/edit.php2,145 ▲452.37 ▲0.3537.39 ▲1.9331.52 ▼4.01
Add New Post /wp-admin/post-new.php1,548 ▲2023.81 ▲0.96632.27 ▲8.7957.63 ▲7.06
Media Library /wp-admin/upload.php1,427 ▲274.54 ▲0.36100.15 ▼10.1943.52 ▼4.82

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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 everything seems fine, this is not 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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: notes, admin, wordpress, sticky notes, note...

admin-sticky-notes/admin_notes.php 92% from 13 tests

"ASN(Admin Sticky Notes)" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-sticky-notes.php" instead of "admin_notes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,956 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21,5688744,896
Markdown110022
CSS11921
PHP14917

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions3
▷ Named functions3100.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
No PNG files were detected