10% logicrays-team-membres

Code Review | Logicrays Team Members

WordPress plugin Logicrays Team Members scored10%from 54 tests.

About plugin

  • Plugin page: logicrays-team-me...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Mar 21, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: logicrays (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /612 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/logicrays-team-membres/lrtm-team-membres.php+72
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.88MB] [CPU: ▼55.74ms] Passed 4 tests

This is a short check of server-side resources used by Logicrays Team Members
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.367.14 ▼33.21
Dashboard /wp-admin2.12 ▼1.187.32 ▼47.85
Posts /wp-admin/edit.php2.12 ▼1.236.58 ▼44.84
Add New Post /wp-admin/post-new.php2.12 ▼3.767.06 ▼97.06
Media Library /wp-admin/upload.php2.12 ▼1.116.38 ▼29.80
Settings /wp-admin/edit.php?post_type=lrtm_teams&page=lrtm-setting-page2.126.46
Add New Member /wp-admin/post-new.php?post_type=lrtm_teams2.127.51
LR Teams /wp-admin/edit.php?post_type=lrtm_teams2.127.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Logicrays Team Members
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.22 ▼1.161.82 ▼0.0139.58 ▼1.82
Dashboard /wp-admin2,237 ▲524.80 ▼1.13116.06 ▲12.1941.84 ▼2.94
Posts /wp-admin/edit.php2,123 ▲312.00 ▲0.0041.17 ▼1.9235.11 ▼1.24
Add New Post /wp-admin/post-new.php1,559 ▲3923.17 ▼0.09645.58 ▼44.3153.28 ▼4.61
Media Library /wp-admin/upload.php1,419 ▲344.21 ▼0.07104.49 ▼2.8746.45 ▲0.86
Settings /wp-admin/edit.php?post_type=lrtm_teams&page=lrtm-setting-page9242.0227.5234.82
Add New Member /wp-admin/post-new.php?post_type=lrtm_teams1,7403.5965.0733.38
LR Teams /wp-admin/edit.php?post_type=lrtm_teams1,0931.9732.9031.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/logicrays-team-membres/lrtm-team-membres.php+72
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 20 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=lrtm_teams
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/logicrays-team-membres/lrtm-team-membres.php+80
    Trying to access array offset on value of type bool

SRP 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logicrays-team-membres/includes/lrtm-team-style3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logicrays-team-membres/includes/lrtm-team-style1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logicrays-team-membres/includes/lrtm-team-style2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/logicrays-team-membres/lrtm-team-membres.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Stable tag: Empty value
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

logicrays-team-membres/lrtm-team-membres.php 92% from 13 tests

The main file in "Logicrays Team Members" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("logicrays-team-membres.php" instead of "lrtm-team-membres.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,130 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG100504
PHP4217325
CSS509301

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin