78% oppso-unit-converter

Code Review | Oppso Unit Converter

WordPress plugin Oppso Unit Converter scored78%from 54 tests.

About plugin

  • Plugin page: oppso-unit-converter
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: May 2, 2013
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: danbwb (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /2,789 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.05MB] [CPU: ▼1.09ms] Passed 4 tests

Server-side resources used by Oppso Unit Converter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.44 ▲3.65
Dashboard /wp-admin3.35 ▲0.0547.26 ▼2.96
Posts /wp-admin/edit.php3.40 ▲0.0547.91 ▼4.05
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.65 ▲0.59
Media Library /wp-admin/upload.php3.28 ▲0.0536.62 ▲2.07
Oppso Unit Converter /wp-admin/options-general.php?page=oppso-unit-converter/oppso-unit-converter.php3.2228.39

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Oppso Unit Converter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲11813.51 ▼0.8510.27 ▲7.7743.93 ▲2.08
Dashboard /wp-admin2,199 ▲285.62 ▼0.0493.28 ▲0.8440.95 ▼0.77
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0440.84 ▲5.1036.00 ▼1.22
Add New Post /wp-admin/post-new.php1,529 ▲123.20 ▲0.02677.59 ▼2.5853.91 ▲2.49
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.01101.74 ▲5.2042.94 ▼0.34
Oppso Unit Converter /wp-admin/options-general.php?page=oppso-unit-converter/oppso-unit-converter.php8512.0229.3729.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=oppso-unit-converter/oppso-unit-converter.php
    • > Notice in wp-content/plugins/oppso-unit-converter/oppso-unit-converter.php+326
    Undefined variable: show
    • > GET request to /wp-admin/options-general.php?page=oppso-unit-converter/oppso-unit-converter.php
    • > Notice in wp-content/plugins/oppso-unit-converter/oppso-unit-converter.php+364
    Undefined variable: convert_options

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/oppso-unit-converter/oppso-unit-converter.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: weight converter, unit converter, distance converter, temperature converter, speed converter...

oppso-unit-converter/oppso-unit-converter.php 92% from 13 tests

The entry point to "Oppso Unit Converter" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected206 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1477162
CSS12043
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions8
▷ Named functions8100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/oppso_logo.png3.05KB2.38KB▼ 21.96%