83% lgpdy

Code Review | LGPDY

WordPress plugin LGPDY scored83%from 54 tests.

About plugin

  • Plugin page: lgpdy
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 19, 2021
  • Latest release: Oct 29, 2021
  • Number of updates: 18
  • Update frequency: every 10.8 days
  • Top authors: luciliocodeby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.52ms] Passed 4 tests

This is a short check of server-side resources used by LGPDY
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.98 ▼9.22
Dashboard /wp-admin3.32 ▲0.0151.56 ▲2.18
Posts /wp-admin/edit.php3.37 ▲0.0149.44 ▼6.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.57 ▼11.56
Media Library /wp-admin/upload.php3.24 ▲0.0143.13 ▲0.90

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LGPDY
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9013.76 ▲0.602.29 ▲0.4642.90 ▼5.67
Dashboard /wp-admin2,216 ▲135.77 ▼0.07103.25 ▼0.2038.77 ▼1.33
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0135.21 ▼1.7636.78 ▼1.42
Add New Post /wp-admin/post-new.php1,529 ▼1617.62 ▼5.73631.23 ▼0.5860.00 ▼13.09
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.04111.14 ▼1.0247.72 ▼0.27
LGPDY /wp-admin/options-general.php?page=lgpdy-configurações7982.0227.5931.22

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lgpdy/lgpdy-wordpress.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #2 is missing in lgpdy/assets to your readme.txt
You can take inspiration from this readme.txt

lgpdy/lgpdy-wordpress.php 92% from 13 tests

"LGPDY" version 0.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lgpdy.php" instead of "lgpdy-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin153 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3810117
Markdown119036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
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
16 PNG files occupy 1.28MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png45.23KB19.89KB▼ 56.02%
assets/lgpdy-wordpress.png1.48KB0.60KB▼ 59.59%
assets/images/banner-1544x500.png419.21KB163.30KB▼ 61.05%
assets/images/icon-256x256.png45.23KB19.89KB▼ 56.02%
assets/images/lgpdy-wordpress.png1.48KB0.60KB▼ 59.59%