84% ml-sticky-notes

Code Review | ML Sticky Notes

WordPress plugin ML Sticky Notes scored84%from 54 tests.

About plugin

  • Plugin page: ml-sticky-notes
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 23, 2013
  • Latest release: Jan 23, 2013
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: matchalabs (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /2,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by ML Sticky Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.60 ▼8.36
Dashboard /wp-admin3.31 ▼0.0449.98 ▼14.45
Posts /wp-admin/edit.php3.36 ▲0.0048.78 ▼4.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.57 ▼11.86
Media Library /wp-admin/upload.php3.23 ▲0.0038.31 ▲5.61

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
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

This is an overview of browser requirements for ML Sticky Notes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15613.59 ▼0.3310.84 ▲9.0643.34 ▲0.88
Dashboard /wp-admin2,195 ▲185.49 ▼0.0889.85 ▼8.7341.94 ▼0.31
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0139.15 ▲1.0734.86 ▼3.05
Add New Post /wp-admin/post-new.php1,526 ▼223.29 ▲0.19662.18 ▼12.9962.26 ▼2.42
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0197.32 ▼9.5148.41 ▲0.72

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ml-sticky-notes/ml-sticky-notes.php:25

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ml-sticky-notes === )
The official readme.txt is a good inspiration

ml-sticky-notes/ml-sticky-notes.php Passed 13 tests

The principal PHP file in "ML Sticky Notes" v. 0.1 is loaded by WordPress automatically on each request
47 characters long description:
Admin sticky notes for front end page and posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin225 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21938160
PHP1183165

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png97.14KB31.77KB▼ 67.30%