10% loadgo-for-wp

Code Review | LoadGo for WP

WordPress plugin LoadGo for WP scored10%from 54 tests.

About plugin

  • Plugin page: loadgo-for-wp
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: May 8, 2016
  • Latest release: Apr 17, 2018
  • Number of updates: 16
  • Update frequency: every 44.4 days
  • Top authors: franverona (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,441 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.94MB] [CPU: ▼53.54ms] Passed 4 tests

Analyzing server-side resources used by LoadGo for WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.415.69 ▼36.20
Dashboard /wp-admin2.07 ▼1.275.23 ▼54.78
Posts /wp-admin/edit.php2.08 ▼1.285.42 ▼38.25
Add New Post /wp-admin/post-new.php2.07 ▼3.815.69 ▼84.93
Media Library /wp-admin/upload.php2.07 ▼1.156.27 ▼28.84
Loadgo /wp-admin/options-general.php?page=loadgo-for-wp/loadgo-options.php2.085.38

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
loadgo_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

LoadGo for WP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲11313.57 ▼0.819.41 ▲7.3447.82 ▲2.96
Dashboard /wp-admin2,224 ▲355.94 ▲0.99106.53 ▲0.3337.80 ▼1.86
Posts /wp-admin/edit.php2,112 ▲232.31 ▲0.2940.43 ▲5.6834.48 ▲0.43
Add New Post /wp-admin/post-new.php1,529 ▲1023.14 ▼0.06648.54 ▼1.1035.88 ▼16.52
Media Library /wp-admin/upload.php1,412 ▲274.41 ▲0.1999.01 ▲4.4344.04 ▲3.34
Loadgo /wp-admin/options-general.php?page=loadgo-for-wp/loadgo-options.php1,2972.2448.2334.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • loadgo_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=loadgo-for-wp/loadgo-options.php
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: logo, pace, loading animation, loadgo, loading

loadgo-for-wp/loadgo.php 85% from 13 tests

The main file in "LoadGo for WP" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("loadgo-for-wp.php" instead of "loadgo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,567 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62881481,628
PHP38474446
Markdown21350317
PO File14050122
JSON10034
CSS27020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/example.png14.40KB5.48KB▼ 61.94%