10% monelib-officiel

Code Review | Monelib Officiel

WordPress plugin Monelib Officiel scored10%from 54 tests.

About plugin

  • Plugin page: monelib-officiel
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 1, 2017
  • Latest release: Mar 23, 2017
  • Number of updates: 14
  • Update frequency: every 0.6 days
  • Top authors: monelib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /558 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/monelib-officiel/mlibOff_edit.php+43
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.11ms] Passed 4 tests

An overview of server-side resources used by Monelib Officiel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.51 ▲4.51
Dashboard /wp-admin3.31 ▲0.0055.70 ▲1.61
Posts /wp-admin/edit.php3.36 ▲0.0050.87 ▲0.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.79 ▼2.30
Media Library /wp-admin/upload.php3.23 ▲0.0041.68 ▲7.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Monelib Officiel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.141.92 ▲0.2038.38 ▼5.17
Dashboard /wp-admin2,198 ▲185.56 ▼0.1093.19 ▲5.5542.92 ▲1.36
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0133.71 ▼12.8038.32 ▲2.97
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▲0.00662.87 ▼25.0459.84 ▲4.19
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.04114.65 ▲8.4849.29 ▲5.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/monelib-officiel/mlibOff_edit.php on line 43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: monelib, protection, payment

monelib-officiel/mlibOff.php 85% from 13 tests

The primary PHP file in "Monelib Officiel" version 1.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("monelib-officiel.php" instead of "mlibOff.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,504 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP112831181,259
PO File18387233
CSS14012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected