10% l-amp-team-members

Code Review | L'Amp Team Members

WordPress plugin L'Amp Team Members scored10%from 54 tests.

About plugin

  • Plugin page: l-amp-team-members
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2013
  • Latest release: Dec 9, 2013
  • Number of updates: 28
  • Update frequency: every 0.7 days
  • Top authors: Dave22 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,124 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/l-amp-team-members/team-members.php+16
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.78ms] Passed 4 tests

Analyzing server-side resources used by L'Amp Team Members
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.03 ▼5.39
Dashboard /wp-admin3.41 ▲0.0752.11 ▼11.67
Posts /wp-admin/edit.php3.46 ▲0.1148.02 ▼4.18
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.29 ▼17.89
Media Library /wp-admin/upload.php3.33 ▲0.1141.19 ▲5.90
Groups /wp-admin/edit-tags.php?taxonomy=l_amp_team_member_categories&post_type=l_amp_team_member3.3338.06
Settings /wp-admin/edit.php?post_type=l_amp_team_member&page=l_amp_tm_settings3.3032.96
Members /wp-admin/edit.php?post_type=l_amp_team_member3.3837.92
Add New /wp-admin/post-new.php?post_type=l_amp_team_member3.4854.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
l-amp-tm-options
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for L'Amp Team Members
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9514.37 ▲0.142.00 ▲0.2944.54 ▲2.26
Dashboard /wp-admin2,232 ▲575.70 ▲0.0885.65 ▼18.1363.88 ▲18.31
Posts /wp-admin/edit.php2,140 ▲402.01 ▲0.0134.56 ▼6.5633.35 ▼4.48
Add New Post /wp-admin/post-new.php1,558 ▲1023.22 ▲0.01773.51 ▲176.8859.57 ▼7.18
Media Library /wp-admin/upload.php1,431 ▲284.31 ▲0.06115.22 ▲13.6269.30 ▲23.88
Groups /wp-admin/edit-tags.php?taxonomy=l_amp_team_member_categories&post_type=l_amp_team_member1,3142.2927.8832.84
Settings /wp-admin/edit.php?post_type=l_amp_team_member&page=l_amp_tm_settings1,0292.0123.0929.51
Members /wp-admin/edit.php?post_type=l_amp_team_member1,1131.9832.1128.35
Add New /wp-admin/post-new.php?post_type=l_amp_team_member2,5427.68175.11139.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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • l-amp-tm-options
    • widget_theysaidso_widget
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/l-amp-team-members/inc/metabox.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/l-amp-team-members/inc/metabox.php:9

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 93% from 29 tests

readme.txt 94% 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 require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === l-amp-team-members === )
You can take inspiration from this readme.txt

l-amp-team-members/team-members.php 92% from 13 tests

The primary PHP file in "L'Amp Team Members" version 1.4.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("l-amp-team-members.php" instead of "team-members.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin527 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3619368
PO File1316287
CSS125072

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.24
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/social/round-32/twitter.png3.44KB0.68KB▼ 80.13%
img/social/round-32/instagram.png3.51KB0.77KB▼ 78.13%
img/icon16.png0.34KB0.21KB▼ 38.79%
img/social/round-32/linkedin.png3.46KB0.69KB▼ 79.96%
img/social/round-16/googleplus.png3.12KB0.44KB▼ 86.02%