83% current-moon-information

Code Review | Current Moon Information

WordPress plugin Current Moon Information scored83%from 54 tests.

About plugin

  • Plugin page: current-moon-info...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2013
  • Latest release: Jan 14, 2017
  • Number of updates: 28
  • Update frequency: every 44.2 days
  • Top authors: vercalendario-info (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Current Moon Information
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.43 ▲2.37
Dashboard /wp-admin3.31 ▲0.0147.99 ▼2.29
Posts /wp-admin/edit.php3.36 ▲0.0141.91 ▼9.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.07 ▼12.48
Media Library /wp-admin/upload.php3.24 ▲0.0131.62 ▼1.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 210 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_currentmoon-widget

Browser metrics Passed 4 tests

Current Moon Information: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.061.67 ▼0.2644.16 ▲3.88
Dashboard /wp-admin2,203 ▲155.94 ▲1.0897.63 ▼1.0940.19 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0137.89 ▼5.0932.43 ▼6.29
Add New Post /wp-admin/post-new.php1,533 ▲1923.13 ▲5.58635.35 ▲5.4355.69 ▲5.18
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0393.48 ▼10.5741.13 ▼3.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_currentmoon-widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/current-moon-information/currentmoon.php:27

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === current-moon-information === )
The official readme.txt might help

current-moon-information/currentmoon.php 85% from 13 tests

The main file in "Current Moon Information" v. 0.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("current-moon-information.php" instead of "currentmoon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected447 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62934322
PHP12532125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected