10% notify-update-par-jm-crea

Code Review | Notify Update par JM Créa

WordPress plugin Notify Update par JM Créa scored10%from 54 tests.

About plugin

  • Plugin page: notify-update-par...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 29, 2015
  • Latest release: Apr 14, 2016
  • Number of updates: 21
  • Update frequency: every 5.1 days
  • Top authors: Dge-06 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,228 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/notify-update-par-jm-crea/index.php+205
    Trying to get property 'verif_nu' of non-object

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

A check of server-side resources used by Notify Update par JM Créa
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.07 ▼0.03
Dashboard /wp-admin3.39 ▲0.0949.40 ▼3.30
Posts /wp-admin/edit.php3.44 ▲0.0951.05 ▼0.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.86 ▼22.00
Media Library /wp-admin/upload.php3.32 ▲0.0937.95 ▲1.55
Notify Update /wp-admin/tools.php?page=nu_jmcrea3.2935.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables
wp_nu_jm_crea
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Notify Update par JM Créa
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.301.59 ▼0.0742.96 ▼4.72
Dashboard /wp-admin2,201 ▲275.66 ▲0.0990.83 ▼1.6940.14 ▼3.15
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0634.34 ▼4.1435.62 ▼1.11
Add New Post /wp-admin/post-new.php1,531 ▲523.13 ▼0.52678.94 ▼20.5465.64 ▲12.07
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.01100.74 ▼15.7143.63 ▼4.69
Notify Update /wp-admin/tools.php?page=nu_jmcrea1,5282.3328.6033.39

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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_nu_jm_crea
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-update-par-jm-crea/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === notify-update-par-jm-crea === )
  • Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

notify-update-par-jm-crea/index.php 92% from 13 tests

The main PHP script in "Notify Update par JM Créa" version 2.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("notify-update-par-jm-crea.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin523 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16231489
CSS14134

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions9
▷ Named functions9100.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