84% wp-rupeefont

Code Review | WP RupeeFont

WordPress plugin WP RupeeFont scored84%from 54 tests.

About plugin

  • Plugin page: wp-rupeefont
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.3-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Oct 5, 2018
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: ajmaurya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,131 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by WP RupeeFont
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.76 ▼1.09
Dashboard /wp-admin3.31 ▲0.0047.27 ▼6.66
Posts /wp-admin/edit.php3.36 ▲0.0046.18 ▼6.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.55 ▲1.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.04 ▲1.00

Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP RupeeFont
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.26 ▼0.295.37 ▲3.7244.11 ▲4.52
Dashboard /wp-admin2,195 ▲185.62 ▼0.0288.03 ▼5.0644.42 ▲0.90
Posts /wp-admin/edit.php2,100 ▲32.17 ▲0.1635.63 ▼3.0436.10 ▼5.43
Add New Post /wp-admin/post-new.php1,545 ▲1423.54 ▲0.31655.92 ▲9.4961.46 ▲7.75
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0299.89 ▼18.5747.51 ▼0.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rupeefont/wp-rupeefont.php:17

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: india rupee, rs, rupee symbol, india rupee symbol, rupee

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

The primary PHP file in "WP RupeeFont" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 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
There were no executable files found in this plugin331 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG110227
JavaScript101881
PHP171713
CSS111810

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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%
Functions2
▷ Named functions2100.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 images were found in this plugin