89% interactivecalculator

Code Review | InteractiveCalculator for WordPress

WordPress plugin InteractiveCalculator for WordPress scored 89% from 54 tests.

About plugin

  • Plugin page: interactivecalcul...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1.1
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Nov 25, 2022
  • Number of updates: 4
  • Update frequency: every 229.3 days
  • Top authors: interactivecalculator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 462 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.12ms] Passed 4 tests

A check of server-side resources used by InteractiveCalculator for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.71 ▼4.10
Dashboard /wp-admin3.31 ▲0.0146.66 ▲2.57
Posts /wp-admin/edit.php3.36 ▲0.0045.52 ▼4.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.73 ▼12.99
Media Library /wp-admin/upload.php3.23 ▲0.0031.92 ▼3.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for InteractiveCalculator for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17115.03 ▲0.6626.36 ▲24.6339.81 ▼5.41
Dashboard /wp-admin2,206 ▲185.84 ▲0.93107.34 ▼6.3542.26 ▼0.26
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0535.83 ▼5.3531.36 ▼8.09
Add New Post /wp-admin/post-new.php1,514 ▼2117.67 ▼5.48666.42 ▼23.8758.07 ▲2.26
Media Library /wp-admin/upload.php1,382 ▼64.16 ▲0.0194.08 ▼21.2242.74 ▼5.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
  • Requires php: Invalid version format
The official readme.txt is a good inspiration

interactivecalculator/interactivecalculator.php Passed 13 tests

Analyzing the main PHP file in "InteractiveCalculator for WordPress" version 1.0.1
69 characters long description:
Add an InteractiveCalculator.com calculator on your WordPress website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin56 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP211830
Markdown112026

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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