93% responsive-mini-storage-calculator

Code Review | Responsive Mini Storage Calculator

WordPress plugin Responsive Mini Storage Calculator scored 93% from 53 tests.

About plugin

  • Plugin page: responsive-mini-s...
  • Plugin version: 1.04
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 5.8.1
  • First release: May 7, 2014
  • Latest release: May 9, 2014
  • Number of updates: 19
  • Update frequency: every 0.5 days
  • Top authors: newdestinymedia (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 1,484 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Responsive Mini Storage Calculator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.22 ▲12.94
Dashboard /wp-admin3.06 ▲0.0131.12 ▼10.20
Posts /wp-admin/edit.php3.11 ▲0.0039.90 ▼0.44
Add New Post /wp-admin/post-new.php5.42 ▼0.01104.42 ▼1,053.59
Media Library /wp-admin/upload.php3.00 ▼0.0028.71 ▼10.58

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Mini Storage Calculator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲12816.02 ▲0.468.24 ▲0.8149.92 ▲1.83
Dashboard /wp-admin2,960 ▲1105.98 ▼0.05154.23 ▲12.39103.18 ▲3.11
Posts /wp-admin/edit.php2,708 ▲22.70 ▲0.0161.59 ▼1.0988.98 ▼4.23
Add New Post /wp-admin/post-new.php1,655 ▼19618.85 ▲1.39357.97 ▼10.48106.78 ▼4.18
Media Library /wp-admin/upload.php1,777 ▲55.00 ▲0.01149.27 ▲0.37103.60 ▼6.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 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/responsive-mini-storage-calculator/msc-mini-storage-calc.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

responsive-mini-storage-calculator/msc-mini-storage-calc.php 85% from 13 tests

The entry point to "Responsive Mini Storage Calculator" version 1.04 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("responsive-mini-storage-calculator.php" instead of "msc-mini-storage-calc.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 143 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
Success! There were no dangerous files found in this plugin832 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11490412
HTML170326
CSS124979
PHP1192215

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected