84% self-made-store

Code Review | Self Made Store

WordPress plugin Self Made Store scored84%from 54 tests.

About plugin

  • Plugin page: self-made-store
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Feb 15, 2016
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: ballin- (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /856 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.69ms] Passed 4 tests

Analyzing server-side resources used by Self Made Store
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.39 ▼4.66
Dashboard /wp-admin3.40 ▲0.0542.86 ▼21.87
Posts /wp-admin/edit.php3.45 ▲0.0947.65 ▼2.54
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.74 ▼5.67
Media Library /wp-admin/upload.php3.32 ▲0.0834.92 ▲1.39
Self Made Store Settings /wp-admin/options-general.php?page=smstore-settings-page3.2827.96
Add New /wp-admin/post-new.php?post_type=smstore-products3.4447.72
All Products /wp-admin/edit.php?post_type=smstore-products3.3634.68

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
smstore_options
widget_smstore_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Self Made Store: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.47 ▲0.081.79 ▼0.0140.16 ▼4.22
Dashboard /wp-admin2,237 ▲465.90 ▲1.00112.19 ▲2.7342.63 ▼2.14
Posts /wp-admin/edit.php2,120 ▲281.99 ▼0.0335.00 ▼3.4031.47 ▼0.64
Add New Post /wp-admin/post-new.php1,540 ▲717.47 ▼5.73660.88 ▼19.9752.33 ▼0.51
Media Library /wp-admin/upload.php1,416 ▲254.16 ▼0.1199.19 ▲5.6342.96 ▼2.61
Self Made Store Settings /wp-admin/options-general.php?page=smstore-settings-page8402.0324.9624.90
Add New /wp-admin/post-new.php?post_type=smstore-products2,3577.67167.6262.10
All Products /wp-admin/edit.php?post_type=smstore-products1,0931.9929.2230.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_smstore_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/self-made-store/self-made-store.php:24

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Screenshot of plugin settings page), #2 (Screenshot of plugin in action)
You can look at the official readme.txt

self-made-store/self-made-store.php Passed 13 tests

The principal PHP file in "Self Made Store" v. 3.1.1 is loaded by WordPress automatically on each request
55 characters long description:
Create a Self Made Store to display product information

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
Everything looks great! No dangerous files found in this plugin299 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29614299

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin