84% wp-emi-calculator

Code Review | WP EMI Calculator

WordPress plugin WP EMI Calculator scored84%from 54 tests.

About plugin

  • Plugin page: wp-emi-calculator
  • Plugin version: 1.0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: May 17, 2015
  • Latest release: May 27, 2015
  • Number of updates: 9
  • Update frequency: every 87.7 days
  • Top authors: Omikant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,277 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by WP EMI Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.71 ▲2.71
Dashboard /wp-admin3.32 ▼0.0247.84 ▼16.59
Posts /wp-admin/edit.php3.37 ▲0.0250.88 ▼15.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.67 ▼13.77
Media Library /wp-admin/upload.php3.25 ▲0.0237.80 ▲1.93

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP EMI Calculator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲20613.70 ▼0.689.67 ▲7.5438.59 ▼0.31
Dashboard /wp-admin2,203 ▲124.84 ▼1.06102.26 ▼5.7040.73 ▲0.39
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0036.28 ▼4.9136.66 ▲0.11
Add New Post /wp-admin/post-new.php1,528 ▲923.24 ▼0.03732.19 ▲77.3059.99 ▲7.71
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.06103.92 ▼1.3844.50 ▼0.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-emi-calculator/wp-emi-calculator.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin list interface showing Slider images and titles.), #2 (Example output.(see documentation).)
You can look at the official readme.txt

wp-emi-calculator/wp-emi-calculator.php Passed 13 tests

"WP EMI Calculator" version 1.0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
This plugin is for EMI Calculator. Please check DEMO on this Link http://www.wptutorialspoint.com/wordpress-emi-calculator-plugin .

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
Success! There were no dangerous files found in this plugin292 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14113292

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected