89% my-marginalia

Code Review | My Marginalia

WordPress plugin My Marginalia scored89%from 54 tests.

About plugin

  • Plugin page: my-marginalia
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 13, 2019
  • Latest release: May 8, 2021
  • Number of updates: 13
  • Update frequency: every 65.1 days
  • Top authors: davidfcarr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by My Marginalia
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.79 ▼2.72
Dashboard /wp-admin3.31 ▲0.0143.25 ▼10.84
Posts /wp-admin/edit.php3.36 ▲0.0047.52 ▲0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.10 ▼1.67
Media Library /wp-admin/upload.php3.23 ▲0.0037.94 ▼1.76
Marginalia /wp-admin/options-general.php?page=marginalia_options3.2231.31

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by My Marginalia
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.25 ▼1.131.61 ▼0.4839.61 ▼11.23
Dashboard /wp-admin2,210 ▲225.85 ▼0.05103.13 ▼7.0540.18 ▼4.54
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0039.99 ▲3.4335.86 ▲2.34
Add New Post /wp-admin/post-new.php6,269 ▲4,73622.71 ▼0.65936.78 ▲267.4584.80 ▲27.17
Media Library /wp-admin/upload.php1,389 ▲14.26 ▲0.11111.29 ▲12.7348.01 ▲4.57
Marginalia /wp-admin/options-general.php?page=marginalia_options8741.9924.5524.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
7 plugin tags: annotation, block, formatting, show notes, timestamp...

my-marginalia/plugin.php 85% from 13 tests

Analyzing the main PHP file in "My Marginalia" version 1.0.6
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 387 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-marginalia.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin251 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31335114
PHP2114570
Sass33147
CSS551720

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin