78% storenvy

Code Review | Storenvy

WordPress plugin Storenvy scored 78% from 54 tests.

About plugin

  • Plugin page: storenvy
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Feb 17, 2011
  • Latest release: Dec 20, 2012
  • Number of updates: 12
  • Update frequency: every 56.0 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼11.31ms] Passed 4 tests

Analyzing server-side resources used by Storenvy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.81 ▲6.61
Dashboard /wp-admin3.20 ▼0.1133.04 ▼15.42
Posts /wp-admin/edit.php3.26 ▼0.0938.04 ▼12.01
Add New Post /wp-admin/post-new.php5.45 ▼0.4477.51 ▼20.24
Media Library /wp-admin/upload.php3.20 ▼0.0335.63 ▲2.42
Storenvy /wp-admin/options-general.php?page=storenvy/storenvy.php3.1729.03

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
storenvy
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Storenvy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9714.74 ▲0.361.94 ▲0.1239.39 ▼6.39
Dashboard /wp-admin2,213 ▲255.90 ▲1.01104.92 ▼4.3238.40 ▼2.55
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0540.35 ▼0.7434.50 ▼0.24
Add New Post /wp-admin/post-new.php1,536 ▲1723.46 ▲0.21664.88 ▲23.0667.34 ▲15.03
Media Library /wp-admin/upload.php1,395 ▲134.19 ▼0.1397.44 ▼12.1046.15 ▼0.56
Storenvy /wp-admin/options-general.php?page=storenvy/storenvy.php1,1592.0129.6837.82

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • storenvy
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=storenvy/storenvy.php
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 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/storenvy/storenvy.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === storenvy === )
Please take inspiration from this readme.txt

storenvy/storenvy.php Passed 13 tests

"Storenvy" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
Display your Storenvy products on your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin333 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111152333

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity4.83
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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 files were detected