74% mc-web-notes

Code Review | MC Web Notes

WordPress plugin MC Web Notes scored74%from 54 tests.

About plugin

  • Plugin page: mc-web-notes
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Jul 5, 2017
  • Latest release: Jul 13, 2017
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: miguelcalderon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.20MB] [CPU: ▼48.68ms] Passed 4 tests

A check of server-side resources used by MC Web Notes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.82 ▼0.6816.45 ▼27.15
Dashboard /wp-admin2.86 ▼0.5216.99 ▼48.56
Posts /wp-admin/edit.php2.86 ▼0.5417.72 ▼34.03
Add New Post /wp-admin/post-new.php2.86 ▼3.0716.95 ▼84.99
Media Library /wp-admin/upload.php2.86 ▼0.4115.22 ▼19.41
All Web Notes /wp-admin/edit.php?post_type=webnotes2.8618.54
Add New /wp-admin/post-new.php?post_type=webnotes2.8618.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for MC Web Notes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲21813.53 ▼0.828.26 ▲6.6644.59 ▲3.64
Dashboard /wp-admin2,236 ▲595.60 ▲0.0484.74 ▼4.9440.11 ▼1.81
Posts /wp-admin/edit.php2,144 ▲442.13 ▲0.1539.77 ▲6.5835.75 ▼2.18
Add New Post /wp-admin/post-new.php1,557 ▲3122.91 ▼0.77648.91 ▼68.4060.75 ▲9.67
Media Library /wp-admin/upload.php1,441 ▲414.19 ▲0.0197.18 ▼0.8142.69 ▼1.55
All Web Notes /wp-admin/edit.php?post_type=webnotes1,1531.9432.1430.50
Add New /wp-admin/post-new.php?post_type=webnotes6,23922.77839.8631.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mc-web-notes/mc-webnotes.php+61
    Undefined index: webnotes_annotate
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=webnotes
    • > Notice in wp-content/plugins/mc-web-notes/mc-webnotes.php+61
    Undefined index: webnotes_annotate

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: There were no tags found
The official readme.txt might help

mc-web-notes/mc-webnotes.php 92% from 13 tests

The primary PHP file in "MC Web Notes" version 0.3.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mc-web-notes.php" instead of "mc-webnotes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin458 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP31112361
PO File1262974
JavaScript30222
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods1794.44%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin