83% wp-webrupee

Code Review | WP WebRupee

WordPress plugin WP WebRupee scored83%from 54 tests.

About plugin

  • Plugin page: wp-webrupee
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: May 27, 2013
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: kdclabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,787 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.01MB] [CPU: ▼5.70ms] Passed 4 tests

Analyzing server-side resources used by WP WebRupee
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0050.35 ▲9.78
Dashboard /wp-admin3.31 ▼0.0452.24 ▼18.01
Posts /wp-admin/edit.php3.36 ▲0.0052.40 ▲0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.68 ▼7.30
Media Library /wp-admin/upload.php3.23 ▲0.0037.90 ▲2.21

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WP WebRupee: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.28 ▼0.022.19 ▲0.5143.87 ▲2.29
Dashboard /wp-admin2,198 ▲185.67 ▲0.0384.14 ▼4.8338.89 ▼0.60
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0437.53 ▼3.0533.04 ▼7.95
Add New Post /wp-admin/post-new.php1,546 ▲123.39 ▲0.10664.71 ▼16.4358.31 ▲2.61
Media Library /wp-admin/upload.php1,403 ▲34.24 ▼0.0998.02 ▼25.7246.26 ▼3.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-webrupee/wp-webrupee.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-webrupee === )
  • Screenshots: Screenshot #1 (Converts any font Rs / Rs. symbol to Rupee Symbol) image required
You can take inspiration from this readme.txt

wp-webrupee/wp-webrupee.php 92% from 13 tests

The primary PHP file in "WP WebRupee" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

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
There were no executable files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png18.25KB7.42KB▼ 59.33%