89% lambdatest-screenshot

Code Review | LambdaTest

WordPress plugin LambdaTest scored89%from 54 tests.

About plugin

  • Plugin page: lambdatest-screen...
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2018
  • Latest release: Apr 5, 2023
  • Number of updates: 51
  • Update frequency: every 33.5 days
  • Top authors: lambdatest (78.43%)ajayklambda (21.57%)Otto42 (3.92%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /6,497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.82ms] Passed 4 tests

A check of server-side resources used by LambdaTest
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.07 ▼1.09
Dashboard /wp-admin3.34 ▲0.0443.65 ▼4.32
Posts /wp-admin/edit.php3.41 ▲0.0541.79 ▼2.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.84 ▼19.04
Media Library /wp-admin/upload.php3.27 ▲0.0435.25 ▲0.65
LambdaTest /wp-admin/admin.php?page=lt_scr_lambdatest_home_page3.2734.27
Test Logs /wp-admin/admin.php?page=lt_scr_lambdatest_test_logs3.3030.23
Screenshot /wp-admin/admin.php?page=lt_scr_lambdatest_screenshot_page3.3634.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 286 new files
Database: 1 new table, 7 new options
New tables
wp_lt_src_lambdatest
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
lt_scr_lambdatest_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for LambdaTest
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.28 ▼0.071.68 ▲0.0943.01 ▲0.85
Dashboard /wp-admin2,224 ▲445.49 ▼0.1082.05 ▼4.6638.63 ▼4.66
Posts /wp-admin/edit.php2,162 ▲651.98 ▲0.0236.39 ▲1.7034.42 ▼5.54
Add New Post /wp-admin/post-new.php1,558 ▲3223.20 ▲0.06678.77 ▲10.7357.47 ▲5.91
Media Library /wp-admin/upload.php1,438 ▲354.16 ▼0.0296.99 ▲0.0942.64 ▼4.29
LambdaTest /wp-admin/admin.php?page=lt_scr_lambdatest_home_page1,1382.2845.7269.79
Test Logs /wp-admin/admin.php?page=lt_scr_lambdatest_test_logs2,2183.6557.2639.30
Screenshot /wp-admin/admin.php?page=lt_scr_lambdatest_screenshot_page11,01411.3348.6652.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • lt_scr_lambdatest_db_version
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: cross platform compatibity testing, lambdatest, free cross browser testing tool, lambda test, unlimited browser testing...

lambdatest-screenshot/lt_src_lambdatest.php 85% from 13 tests

"LambdaTest" version 3.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lambdatest-screenshot.php" instead of "lt_src_lambdatest.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,078 lines of code in 145 files:
LanguageFilesBlank linesComment linesLines of code
PHP10114601,793
SVG1200141,044
CSS6364231
JSON6006
JavaScript30124

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
119 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/arrowDown.png1.00KB0.21KB▼ 79.47%
icons/downloadAll-0.png1.07KB0.20KB▼ 81.55%
icons/chrome.png0.34KB0.34KB0.29%
icons/vector-smart-object_7.png0.34KB0.34KB▼ 1.15%
icons/enable-tunnle-yellow.png0.27KB0.14KB▼ 46.93%