83% certificate-customizer-for-tutor-lms

Code Review | Certificate customizer for Tutor LMS

WordPress plugin Certificate customizer for Tutor LMS scored83%from 54 tests.

About plugin

  • Plugin page: certificate-custo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2019
  • Latest release: Jul 9, 2021
  • Number of updates: 6
  • Update frequency: every 126.0 days
  • Top authors: themeum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /29,707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Certificate customizer for Tutor LMS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0146.79 ▲5.62
Dashboard /wp-admin3.31 ▲0.0045.62 ▼1.77
Posts /wp-admin/edit.php3.36 ▲0.0044.85 ▼3.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.14 ▼11.80
Media Library /wp-admin/upload.php3.23 ▲0.0032.47 ▼1.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Certificate customizer for Tutor LMS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.37 ▼0.911.70 ▼0.0743.51 ▼3.45
Dashboard /wp-admin2,203 ▲184.87 ▼0.12102.09 ▼28.5336.95 ▼16.09
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0136.61 ▼2.9332.29 ▼5.32
Add New Post /wp-admin/post-new.php1,535 ▲1823.09 ▲5.49653.38 ▼38.3669.60 ▲12.96
Media Library /wp-admin/upload.php1,385 ▼34.36 ▲0.1696.54 ▲0.6240.74 ▼3.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/certificate-customizer-for-tutor-lms/templates/dhoritry/certificate.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add an image for screenshot #1 (nothing.)
You can take inspiration from this readme.txt

certificate-customizer-for-tutor-lms/certificate-customizer-for-tutor-lms.php 92% from 13 tests

The main PHP file in "Certificate customizer for Tutor LMS" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")

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
There were no executable files found in this plugin199 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS125106
PHP2152293

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/dhoritry/background.png178.24KB75.91KB▼ 57.41%
templates/dhoritry/preview.png222.98KB85.03KB▼ 61.86%