88% calendrier-lunaire

Code Review | Moon Calendar Widget

WordPress plugin Moon Calendar Widget scored88%from 54 tests.

About plugin

  • Plugin page: calendrier-lunaire
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Dec 8, 2013
  • Number of updates: 16
  • Update frequency: every 6.9 days
  • Top authors: Publigo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /8,190 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.03MB] [CPU: ▼11.69ms] Passed 4 tests

A check of server-side resources used by Moon Calendar Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.15 ▼5.41
Dashboard /wp-admin3.34 ▼0.0043.17 ▼23.14
Posts /wp-admin/edit.php3.39 ▲0.0449.21 ▲7.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0674.61 ▼19.96
Media Library /wp-admin/upload.php3.27 ▲0.0434.67 ▲1.76

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_moon_calendar_widget
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Moon Calendar Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.44 ▼1.201.64 ▼0.1939.07 ▼4.28
Dashboard /wp-admin2,228 ▲405.10 ▼0.78113.22 ▼1.9142.25 ▼1.37
Posts /wp-admin/edit.php2,113 ▲242.32 ▲0.3241.08 ▲6.0933.81 ▼1.16
Add New Post /wp-admin/post-new.php1,528 ▲1423.47 ▲6.04647.32 ▼26.9135.85 ▼18.83
Media Library /wp-admin/upload.php1,410 ▲224.41 ▲0.15100.31 ▲3.3740.91 ▼0.49

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_moon_calendar_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Contributors: Contributors not specified
  • Contributors: Please add at least on tag
  • Screenshots: Add images for these screenshots: #1 (Moon Calendar (generated picture)), #2 (Moon Calendar Widget - Configuration), #3 (Moon Calendar Widget - Configuration)
The official readme.txt might help

calendrier-lunaire/moon-calendar-widget.php 85% from 13 tests

"Moon Calendar Widget" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("calendrier-lunaire.php" instead of "moon-calendar-widget.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected223 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22656118
PO File23274102
JavaScript1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity7.20
▷ Minimum method complexity1.00
▷ Maximum method complexity22.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%
Functions1
▷ Named functions1100.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
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png15.68KB7.04KB▼ 55.10%
screenshot-3.png33.88KB21.77KB▼ 35.73%
screenshot-1.png66.25KB27.04KB▼ 59.18%