73% luzuk-testimonials

Code Review | Luzuk Testimonials

WordPress plugin Luzuk Testimonials scored73%from 54 tests.

About plugin

  • Plugin page: luzuk-testimonials
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 23, 2021
  • Latest release: Oct 23, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: luzuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.96ms] Passed 4 tests

This is a short check of server-side resources used by Luzuk Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1540.69 ▲2.98
Dashboard /wp-admin3.46 ▲0.1143.53 ▼14.69
Posts /wp-admin/edit.php3.57 ▲0.2146.15 ▲3.44
Add New Post /wp-admin/post-new.php6.06 ▲0.1791.26 ▲0.14
Media Library /wp-admin/upload.php3.38 ▲0.1535.14 ▼0.27
Luzuk Testimonials /wp-admin/edit.php?post_type=ltestip-plugin3.4237.50
Add New /wp-admin/post-new.php?post_type=ltestip-plugin3.5247.31
Settings /wp-admin/edit.php?post_type=ltestip-plugin&page=ltesti_tutorial_subpage_example3.3229.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 11 new options
New WordPress options
namefontsize
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
textfontsize
theysaidso_admin_options
postnumber
postnumbercol
can_compress_scripts
...

Browser metrics Passed 4 tests

Luzuk Testimonials: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,113 ▲34214.62 ▲0.0419.91 ▲17.8448.53 ▲4.41
Dashboard /wp-admin2,261 ▲765.07 ▲0.20113.08 ▲4.3843.17 ▼0.34
Posts /wp-admin/edit.php2,146 ▲572.27 ▲0.2839.84 ▲0.6535.34 ▼1.57
Add New Post /wp-admin/post-new.php1,556 ▲3723.28 ▲0.18672.60 ▼9.3436.36 ▼14.79
Media Library /wp-admin/upload.php1,437 ▲494.54 ▲0.2697.62 ▼11.7046.43 ▲0.05
Luzuk Testimonials /wp-admin/edit.php?post_type=ltestip-plugin1,1212.2333.3829.95
Add New /wp-admin/post-new.php?post_type=ltestip-plugin2,4267.80182.6067.42
Settings /wp-admin/edit.php?post_type=ltestip-plugin&page=ltesti_tutorial_subpage_example1,3962.4460.1833.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_theysaidso_widget
    • ltfp_testi
    • can_compress_scripts
    • db_upgraded
    • textfontsize
    • postnumbercol
    • theysaidso_admin_options
    • postnumber
    • widget_recent-comments
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=ltestip-plugin&page=ltesti_tutorial_subpage_example
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=ltestip-plugin&page=ltesti_tutorial_subpage_example
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/luzuk-testimonials/luzuk-testimonials.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ltestip-plugin&page=ltesti_tutorial_subpage_example
    • > Network (severe)
    wp-content/plugins/luzuk-testimonials/assets/js/testi-custom-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: our testimony, responsive, testimonials

luzuk-testimonials/luzuk-testimonials.php Passed 13 tests

The entry point to "Luzuk Testimonials" version 0.0.1 is a PHP file that has certain tags in its header comment area
126 characters long description:
You could add or create the Testimonial by using there short codes into your pages [Luzuk_Testimonial] | [Testimonial_Slider].

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
Good job! No executable or dangerous file extensions detected8,210 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52,1291,9437,223
PHP213950679
CSS6727308

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions23
▷ Named functions23100.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
1 PNG file occupies 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/defaultpic.png43.69KB29.32KB▼ 32.89%