84% lasgo

Code Review | Lasgo

WordPress plugin Lasgo scored84%from 54 tests.

About plugin

  • Plugin page: lasgo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Jan 1, 2014
  • Latest release: Jan 2, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mitegvg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /902 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.05MB] [CPU: ▼15.99ms] Passed 4 tests

A check of server-side resources used by Lasgo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1843.14 ▼0.25
Dashboard /wp-admin3.25 ▼0.0628.67 ▼17.30
Posts /wp-admin/edit.php3.38 ▲0.0233.07 ▼14.71
Add New Post /wp-admin/post-new.php5.62 ▼0.2770.01 ▼26.53
Media Library /wp-admin/upload.php3.33 ▲0.1029.67 ▼5.42

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Lasgo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲23414.06 ▼0.332.33 ▲0.5743.86 ▲6.07
Dashboard /wp-admin2,358 ▲1675.95 ▲0.05136.60 ▲32.5080.92 ▲41.21
Posts /wp-admin/edit.php2,262 ▲1732.86 ▲0.8762.10 ▲24.7645.40 ▲12.39
Add New Post /wp-admin/post-new.php1,666 ▲15223.79 ▲6.07652.78 ▼41.7341.39 ▼19.56
Media Library /wp-admin/upload.php1,544 ▲1595.33 ▲1.02136.49 ▲33.9453.91 ▲11.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lasgo/includes/levels.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lasgo/includes/points.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lasgo/includes/levels.php:3

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png), #7 (screenshot-7.png)
You can look at the official readme.txt

lasgo/lasgo.php Passed 13 tests

Analyzing the main PHP file in "Lasgo" version 1.0
81 characters long description:
Learn-as-you-go animated tutorial to help you improve your knowledge of WordPress

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
Everything looks great! No dangerous files found in this plugin7,257 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
Sass91,152142,303
LESS91,152872,231
CSS349441,346
JavaScript2752578
PHP36611400
SVG100399

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.67MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png91.32KB32.37KB▼ 64.55%
images/lasgo_ball.png2.28KB1.72KB▼ 24.58%
screenshot-7.png69.83KB19.51KB▼ 72.06%
screenshot-5.png92.86KB33.75KB▼ 63.66%
screenshot-4.png94.40KB30.28KB▼ 67.92%