10% laiser-tag-plus

Code Review | Laiser Tag Plus

WordPress plugin Laiser Tag Plus scored10%from 54 tests.

About plugin

  • Plugin page: laiser-tag-plus
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Jan 10, 2019
  • Number of updates: 11
  • Update frequency: every 40.6 days
  • Top authors: pcis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,120 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/laiser-tag-plus/laisertagplus.php+12
    Undefined variable: wp_version

Server metrics [RAM: ▲0.22MB] [CPU: ▲2.73ms] Passed 4 tests

Server-side resources used by Laiser Tag Plus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6849.02 ▲5.74
Dashboard /wp-admin3.45 ▲0.1558.63 ▲4.69
Posts /wp-admin/edit.php3.56 ▲0.2154.60 ▲7.97
Add New Post /wp-admin/post-new.php6.25 ▲0.3792.04 ▼4.63
Media Library /wp-admin/upload.php3.37 ▲0.1440.50 ▲5.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Laiser Tag Plus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲9113.39 ▼0.759.87 ▲7.9946.36 ▲5.58
Dashboard /wp-admin2,202 ▲225.65 ▼0.05101.18 ▲10.3942.59 ▼2.75
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0137.44 ▲0.2435.93 ▼0.49
Add New Post /wp-admin/post-new.php1,536 ▼1117.73 ▼5.53685.71 ▲40.2859.05 ▲6.54
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.04114.48 ▲12.6248.74 ▼0.07
Laiser Tag Plus /wp-admin/laisertagplus.php260.440.0614.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/laiser-tag-plus/laisertagplus.php on line 17
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/laiser-tag-plus/laisertagplus.php on line 13
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/laiser-tag-plus/laisertagplus.php on line 15
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/laiser-tag-plus/laisertagplus.php on line 12
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/laiser-tag-plus/laisertagplus.php on line 16
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/laiser-tag-plus/laisertagplus.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/laiser-tag-plus/laisertagplus.php:22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/laisertagplus.php
    • > Network (severe)
    wp-admin/laisertagplus.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: semantic data, taxonomy, open calais, tagging, content optimization

laiser-tag-plus/laisertagplus.php 92% from 13 tests

Analyzing the main PHP file in "Laiser Tag Plus" version 1.0.3
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("laiser-tag-plus.php" instead of "laisertagplus.php")

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
Success! There were no dangerous files found in this plugin12,280 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript295472703,616
CSS649212,639
PHP22983232,355
Sass1328241,520
LESS1328341,510
SVG100640

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity164.50
▷ Minimum class complexity131.00
▷ Maximum class complexity198.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants33
▷ Global constants33100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/img-size-500.png0.20KB0.14KB▼ 28.99%
images/img-size-100.png0.23KB0.18KB▼ 19.92%
images/add.png4.40KB1.48KB▼ 66.35%
images/img-size-75.png0.23KB0.18KB▼ 21.10%
assets/icon-128.png5.04KB2.84KB▼ 43.56%