68% loop11

Code Review | Loop11 for Wordpress

WordPress plugin Loop11 for Wordpress scored 68% from 54 tests.

About plugin

  • Plugin page: loop11
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Sep 6, 2016
  • Latest release: Sep 7, 2016
  • Number of updates: 5
  • Update frequency: every 15.0 days
  • Top authors: loop11ux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 540 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.84MB] [CPU: ▼188.96ms] Passed 4 tests

Server-side resources used by Loop11 for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.939.12 ▼25.50
Dashboard /wp-admin1.80 ▼1.259.56 ▼53.18
Posts /wp-admin/edit.php1.81 ▼1.308.18 ▼29.60
Add New Post /wp-admin/post-new.php1.80 ▼3.635.96 ▼644.50
Media Library /wp-admin/upload.php1.81 ▼1.206.55 ▼28.57
Loop11 /wp-admin/options-general.php?page=loop111.815.88

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options
loop11_script

Browser metrics Passed 4 tests

Loop11 for Wordpress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,727 ▲13215.80 ▲0.299.36 ▼0.6352.34 ▼3.35
Dashboard /wp-admin2,984 ▲505.91 ▼0.01137.28 ▼33.10130.92 ▲19.78
Posts /wp-admin/edit.php2,764 ▲252.57 ▼0.1261.79 ▼5.4086.27 ▼9.11
Add New Post /wp-admin/post-new.php1,620 ▲12218.57 ▼0.29389.63 ▲9.57104.13 ▼4.74
Media Library /wp-admin/upload.php1,775 ▼325.01 ▲0.00128.84 ▼27.33135.37 ▲3.12
Loop11 /wp-admin/options-general.php?page=loop111,0742.0958.56108.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the loop11_wp.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 1 option
    • loop11_script

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=loop11
    • > User notice in wp-includes/functions.php+5663
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the loop11_wp.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=loop11
    • > Notice in wp-content/plugins/loop11/loop11.php+145
    Trying to access array offset on value of type bool

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/loop11/loop11.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
1 plugin tags: loop11

loop11/loop11.php Passed 13 tests

The primary PHP file in "Loop11 for Wordpress" version 1.0 is used by WordPress to initiate all plugin functionality
122 characters long description:
This plugin allows simple insertion of the Loop11 JavaScript code, no programming required, start your user testing today!

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 detected201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14712135
CSS10066

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gear_bad.png5.83KB2.74KB▼ 52.90%
uservoice.png8.00KB2.70KB▼ 66.27%
gear_good.png6.22KB2.82KB▼ 54.73%
loop11_logo.png3.59KB2.33KB▼ 35.22%
loop11_logo_black_wp.png1.49KB0.82KB▼ 45.14%