78% standard-deviation-calculator

Code Review | Standard Deviation Calculator

WordPress plugin Standard Deviation Calculator scored78%from 54 tests.

About plugin

  • Plugin page: standard-deviatio...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Nov 30, 2022
  • Number of updates: 9
  • Update frequency: every 3.2 days
  • Top authors: sdcalculator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.16ms] Passed 4 tests

Server-side resources used by Standard Deviation Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.49 ▼3.75
Dashboard /wp-admin3.33 ▲0.0243.08 ▼8.50
Posts /wp-admin/edit.php3.38 ▲0.0247.94 ▼0.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.29 ▼8.03
Media Library /wp-admin/upload.php3.25 ▲0.0236.13 ▲4.54

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Standard Deviation Calculator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15213.57 ▼0.975.20 ▲3.1750.00 ▲3.81
Dashboard /wp-admin2,218 ▲305.94 ▲0.9096.90 ▼12.1237.29 ▼2.17
Posts /wp-admin/edit.php2,101 ▲122.03 ▲0.0235.00 ▼2.4132.17 ▼2.93
Add New Post /wp-admin/post-new.php1,547 ▲1423.62 ▲0.47671.70 ▲3.0758.94 ▼5.25
Media Library /wp-admin/upload.php1,394 ▲94.21 ▼0.05106.53 ▲6.8048.78 ▲2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/standard-deviation-calculator/inc/main-form.php
    • > /wp-content/plugins/standard-deviation-calculator/standard-deviation-cal.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/standard-deviation-calculator/inc/admin-setting.php:38

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: calculator, standard deviation, stats calculator

standard-deviation-calculator/standard-deviation-cal.php 92% from 13 tests

The main PHP file in "Standard Deviation Calculator" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("standard-deviation-calculator.php" instead of "standard-deviation-cal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected634 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS1743256
PHP63019207
JavaScript152171

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin