78% save-vapor-products

Code Review | Save Vapor Products - Support H.R.2058

WordPress plugin Save Vapor Products - Support H.R.2058 scored 78% from 54 tests.

About plugin

  • Plugin page: save-vapor-products
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 5, 2015
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: aleksblago (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 629 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Save Vapor Products - Support H.R.2058
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.34 ▼4.74
Dashboard /wp-admin3.31 ▲0.0044.38 ▼3.93
Posts /wp-admin/edit.php3.36 ▲0.0051.61 ▲5.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.45 ▼2.36
Media Library /wp-admin/upload.php3.23 ▲0.0033.83 ▲0.34

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Save Vapor Products - Support H.R.2058
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.221.56 ▼0.0338.32 ▼6.08
Dashboard /wp-admin2,203 ▲155.85 ▲1.01106.49 ▲8.8643.20 ▲0.34
Posts /wp-admin/edit.php2,089 ▲31.98 ▼0.0639.19 ▲3.7934.80 ▼1.19
Add New Post /wp-admin/post-new.php1,514 ▼1017.72 ▼5.52626.86 ▼1.3946.76 ▼4.84
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0294.28 ▼3.8041.42 ▼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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/save-vapor-products/casaa.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/save-vapor-products/save-vapor-products.php on line 35
    • > PHP Warning
      require(ABSPATHWPINC/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/save-vapor-products/save-vapor-products.php on line 35
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/save-vapor-products/save-vapor-products.php on line 35
    • > PHP Fatal error
      require(): Failed opening required 'ABSPATHWPINC/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/save-vapor-products/save-vapor-products.php on line 35
    • > PHP Notice
      Undefined index: pagenow in wp-content/plugins/save-vapor-products/save-vapor-products.php on line 28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
You can take inspiration from this readme.txt

save-vapor-products/save-vapor-products.php 92% from 13 tests

The main file in "Save Vapor Products - Support H.R.2058" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 416 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2183889

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions0
▷ Named functions00.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.23MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png230.88KB89.36KB▼ 61.30%