84% luzuk-team

Code Review | Luzuk Team

WordPress plugin Luzuk Team scored84%from 54 tests.

About plugin

  • Plugin page: luzuk-team
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 14
  • Update frequency: every 3.2 days
  • Top authors: luzuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼4.89ms] Passed 4 tests

This is a short check of server-side resources used by Luzuk Team
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3541.13 ▲2.62
Dashboard /wp-admin3.65 ▲0.3448.36 ▼15.28
Posts /wp-admin/edit.php3.76 ▲0.4051.57 ▲2.26
Add New Post /wp-admin/post-new.php6.25 ▲0.3688.40 ▼9.17
Media Library /wp-admin/upload.php3.57 ▲0.3440.20 ▲4.35
Luzuk Team /wp-admin/edit.php?post_type=our-lteam3.6143.72
Add New /wp-admin/post-new.php?post_type=our-lteam3.7151.87
Settings /wp-admin/edit.php?post_type=our-lteam&page=ltsmp_tutorial_subpage_example3.5436.49

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 13 new options
New WordPress options
teamslidertransitionduration
ltfp_option_sel_slidertemplate
can_compress_scripts
widget_theysaidso_widget
ltfp_teamarrow
ltfp_option_sel_template
lteamp_postno
db_upgraded
ltfp_teamdot
teamsliderpostnumber
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Luzuk Team
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲20913.67 ▼0.689.34 ▲7.3244.66 ▲0.76
Dashboard /wp-admin2,244 ▲675.87 ▲0.3092.43 ▼1.6437.54 ▼16.07
Posts /wp-admin/edit.php2,157 ▲572.34 ▲0.3441.98 ▲3.6137.86 ▼1.97
Add New Post /wp-admin/post-new.php1,577 ▲4223.63 ▲5.41664.03 ▲22.8737.30 ▼35.14
Media Library /wp-admin/upload.php1,455 ▲554.47 ▲0.26108.42 ▲6.2149.02 ▲4.19
Luzuk Team /wp-admin/edit.php?post_type=our-lteam1,1352.2440.3130.71
Add New /wp-admin/post-new.php?post_type=our-lteam2,4648.02166.9973.25
Settings /wp-admin/edit.php?post_type=our-lteam&page=ltsmp_tutorial_subpage_example2,9582.94105.8932.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 13 options
    • ltfp_option_sel_slidertemplate
    • teamsliderpostnumber
    • ltfp_option_sel_template
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • ltfp_teamarrow
    • theysaidso_admin_options
    • teamslidertransitionduration
    • lteamp_postno
    • ...

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 | 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/luzuk-team/luzuk-team.php:17

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: our team, team members showcase, team members, meet the team, responsive

luzuk-team/luzuk-team.php 85% from 13 tests

"Luzuk Team" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin17,471 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,954
CSS81,627846,190
PHP33391201,936
JavaScript49832391

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions35
▷ Named functions35100.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
4 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/default.png5.19KB5.66KB0.00%
images/dinero.png63.05KB20.19KB▼ 67.97%
banner-772x250.png105.50KB46.27KB▼ 56.14%
icon-256x256.png58.80KB16.24KB▼ 72.38%