83% ao-lfsmanager

Code Review | hanapaena's Lite - Font & Style Manager - DSGVO/GDPR

WordPress plugin hanapaena's Lite - Font & Style Manager - DSGVO/GDPR scored83%from 54 tests.

About plugin

  • Plugin page: ao-lfsmanager
  • Plugin version: 2.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2022
  • Latest release: Jun 15, 2023
  • Number of updates: 11
  • Update frequency: every 24.8 days
  • Top authors: aohipa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.43MB] [CPU: ▲2.04ms] Passed 4 tests

Analyzing server-side resources used by hanapaena's Lite - Font & Style Manager - DSGVO/GDPR
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.43 ▼2.66
Dashboard /wp-admin3.89 ▲0.5561.51 ▼4.08
Posts /wp-admin/edit.php3.96 ▲0.6061.14 ▲7.95
Add New Post /wp-admin/post-new.php6.26 ▲0.38100.39 ▲6.96
Media Library /wp-admin/upload.php3.89 ▲0.6749.51 ▲15.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
pss_lfsmanager_setting_remove_google_apis
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
pss_lfsmanager_current_version
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

hanapaena's Lite - Font & Style Manager - DSGVO/GDPR: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲18613.34 ▼0.771.76 ▼0.1441.33 ▼3.61
Dashboard /wp-admin2,368 ▲1805.16 ▲0.28114.59 ▲3.7183.84 ▲39.54
Posts /wp-admin/edit.php2,250 ▲1612.28 ▲0.2840.60 ▼0.4533.39 ▼2.04
Add New Post /wp-admin/post-new.php1,529 ▲1023.11 ▼0.14638.75 ▼20.4951.34 ▲0.76
Media Library /wp-admin/upload.php1,545 ▲1544.52 ▲0.21101.76 ▲1.6440.52 ▼4.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ao-lfsmanager/update/update.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ao-lfsmanager/admin/partials/pss-lfsmanager-admin-display.php:2

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 90% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

ao-lfsmanager/lite-fsmanager.php 85% from 13 tests

The main file in "hanapaena's Lite - Font & Style Manager - DSGVO/GDPR" v. 2.1 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ao-lfsmanager.php" instead of "lite-fsmanager.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,285 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP1268610619
CSS1122377
SVG591191
PO File17724173
JavaScript10325

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.41
Average class complexity14.71
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods38.11%
▷ Public methods2875.68%
▷ Protected methods00.00%
▷ Private methods924.32%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.60MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/icons/hanapaena-cut.png115.87KB61.01KB▼ 47.35%
admin/icons/hanapaena.png123.29KB63.93KB▼ 48.14%
admin/icons/icon-256x256.png40.14KB17.46KB▼ 56.50%
admin/banner/plugin-background.png217.89KB178.23KB▼ 18.20%
admin/style/pss-plugin-admin-bg.png116.05KB40.79KB▼ 64.85%