84% eyelaser-savings-calculator-by-ostheimer

Code Review | Eye-Laser Savings Calculator by Ostheimer

WordPress plugin Eye-Laser Savings Calculator by Ostheimer scored84%from 54 tests.

About plugin

  • Plugin page: eyelaser-savings-...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2013
  • Latest release: May 19, 2019
  • Number of updates: 17
  • Update frequency: every 125.7 days
  • Top authors: helpstring (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Eye-Laser Savings Calculator by Ostheimer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.60 ▼4.54
Dashboard /wp-admin3.32 ▼0.0243.63 ▼15.14
Posts /wp-admin/edit.php3.38 ▲0.0246.95 ▼2.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.74 ▼9.21
Media Library /wp-admin/upload.php3.25 ▲0.0237.65 ▲1.56

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eye-Laser Savings Calculator by Ostheimer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.89 ▼0.739.24 ▲7.5638.90 ▼6.50
Dashboard /wp-admin2,189 ▲185.56 ▲0.0283.03 ▼17.8238.92 ▼3.49
Posts /wp-admin/edit.php2,100 ▲182.09 ▲0.0837.81 ▲1.8833.71 ▼2.77
Add New Post /wp-admin/post-new.php1,531 ▲323.30 ▲0.05690.40 ▼21.4350.79 ▼1.93
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.02102.82 ▼13.0847.21 ▼0.11

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/eyelaser-savings-calculator-by-ostheimer/eyelaser-savings.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Eye-Laser Savings Calculator by Ostheimer)
Please take inspiration from this readme.txt

eyelaser-savings-calculator-by-ostheimer/eyelaser-savings.php 92% from 13 tests

The main PHP file in "Eye-Laser Savings Calculator by Ostheimer" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eyelaser-savings-calculator-by-ostheimer.php" instead of "eyelaser-savings.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
Everything looks great! No dangerous files found in this plugin1,380 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS255501,164
PHP1172680
PO File1287069
JavaScript112167

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%