10% sample-sales-op-je-site-nl

Code Review | Stockverkopen.nl Sample Sales op je Site

WordPress plugin Stockverkopen.nl Sample Sales op je Site scored 10% from 54 tests.

About plugin

  • Plugin page: sample-sales-op-j...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 18, 2014
  • Latest release: Feb 19, 2014
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: leysmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 469 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/sample-sales-op-je-site-nl/ssopjesite_stockverkopennl.php+91
    Undefined variable: wp_version

Server metrics [RAM: ▲0.05MB] [CPU: ▼137.18ms] Passed 4 tests

Server-side resources used by Stockverkopen.nl Sample Sales op je Site
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0634.76 ▲2.77
Dashboard /wp-admin3.11 ▲0.0646.16 ▲8.59
Posts /wp-admin/edit.php3.16 ▲0.0642.28 ▼1.45
Add New Post /wp-admin/post-new.php5.48 ▲0.0588.39 ▼551.64
Media Library /wp-admin/upload.php3.06 ▲0.0530.26 ▲1.59
Sample Sales op je site (NL) /wp-admin/options-general.php?page=ssnl_pluginmenu3.0227.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: 1 new table, 3 new options
New tables
wp_ssnl_data
New WordPress options
ssnl_lastupdate
ssnl_db_version
widget_ssnl_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Stockverkopen.nl Sample Sales op je Site
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9015.90 ▲0.289.69 ▼0.0149.74 ▲1.22
Dashboard /wp-admin2,975 ▲445.91 ▼0.25136.45 ▼27.70113.90 ▼3.43
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0061.36 ▼1.2691.78 ▼0.46
Add New Post /wp-admin/post-new.php1,879 ▲20319.19 ▲0.40366.03 ▲3.86104.21 ▼5.80
Media Library /wp-admin/upload.php1,815 ▲55.03 ▲0.01157.56 ▲6.87122.72 ▼5.91
Sample Sales op je site (NL) /wp-admin/options-general.php?page=ssnl_pluginmenu1,1502.0855.5572.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_ssnl_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/sample-sales-op-je-site-nl/ssopjesite_stockverkopennl.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sample-sales-op-je-site-nl/ssopjesite_stockverkopennl.php:65

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

sample-sales-op-je-site-nl/ssopjesite_stockverkopennl.php 85% from 13 tests

"Stockverkopen.nl Sample Sales op je Site" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("sample-sales-op-je-site-nl.php" instead of "ssopjesite_stockverkopennl.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 463 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
Everything looks great! No dangerous files found in this plugin248 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14653248

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected