83% mm-ephemeride

Code Review | Plugin name: MM Ephemeride

WordPress plugin Plugin name: MM Ephemeridescored83%from 54 tests.

About plugin

  • Plugin page: mm-ephemeride
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: May 3, 2021
  • Latest release: May 3, 2021
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: mathildemar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Plugin name: MM Ephemeride
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.42 ▲9.83
Dashboard /wp-admin3.31 ▲0.0144.55 ▼3.46
Posts /wp-admin/edit.php3.36 ▲0.0146.58 ▼0.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.40 ▼9.52
Media Library /wp-admin/upload.php3.24 ▲0.0134.36 ▲2.69
MM Ephemeride /wp-admin/options-general.php?page=mmeph_ephemeride_id3.2030.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables
wp_ephemeride
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
mmeph_ephemeride_init
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Plugin name: MM Ephemeride
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.26 ▼1.111.71 ▼0.2335.74 ▼8.03
Dashboard /wp-admin2,213 ▲254.83 ▼0.0596.81 ▼18.3536.38 ▼15.58
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0539.86 ▲2.0635.02 ▼0.76
Add New Post /wp-admin/post-new.php1,545 ▲3118.10 ▲0.53635.91 ▼62.4861.62 ▼0.16
Media Library /wp-admin/upload.php1,386 ▼54.14 ▼0.0299.07 ▼8.6843.64 ▼4.73
MM Ephemeride /wp-admin/options-general.php?page=mmeph_ephemeride_id8252.0226.0733.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mm-ephemeride/mm-ephemeride.php:556

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in mm-ephemeride/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin name: MM Ephemeride=== )
You can look at the official readme.txt

mm-ephemeride/mm-ephemeride.php 92% from 13 tests

The main PHP script in "Plugin name: MM Ephemeride" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)

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
Everything looks great! No dangerous files found in this plugin555 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16940555

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin