83% rnd-experts-sip-calculator

Code Review | Sip Calculator

WordPress plugin Sip Calculator scored83%from 54 tests.

About plugin

  • Plugin page: rnd-experts-sip-c...
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2023
  • Latest release: Jan 20, 2023
  • Number of updates: 6
  • Update frequency: every 2.2 days
  • Top authors: webrndexperts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.71ms] Passed 4 tests

An overview of server-side resources used by Sip Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.30 ▲4.44
Dashboard /wp-admin3.31 ▼0.0346.35 ▼18.74
Posts /wp-admin/edit.php3.36 ▲0.0141.64 ▼1.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.62 ▼6.43
Media Library /wp-admin/upload.php3.24 ▲0.0134.89 ▲0.05

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

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

Browser metrics Passed 4 tests

Sip Calculator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.41 ▲0.151.74 ▼0.1251.33 ▲12.24
Dashboard /wp-admin2,206 ▲154.90 ▼1.01114.21 ▲14.5543.47 ▲3.36
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0035.40 ▼2.1631.38 ▼1.66
Add New Post /wp-admin/post-new.php1,533 ▼1023.13 ▲5.02671.59 ▲72.3363.09 ▲12.43
Media Library /wp-admin/upload.php1,388 ▲94.21 ▲0.0295.46 ▼4.4341.91 ▼1.69

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 no errors were found, this is by no means 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/rnd-experts-sip-calculator/includes/index.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rnd-experts-sip-calculator/mortgage-calculator.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Block Editor support for shortcode), #2 (Sip Form with Pie chart)
Please take inspiration from this readme.txt

rnd-experts-sip-calculator/mortgage-calculator.php 77% from 13 tests

The entry point to "Sip Calculator" version 0.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rnd-experts-sip-calculator.php" instead of "mortgage-calculator.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

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 plugin426 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP33021200
JavaScript2420139
PO File1172054
Markdown133033

PHP code Passed 2 tests

A brief analysis 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.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin