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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 34.76 ▲2.77 |
Dashboard /wp-admin | 3.11 ▲0.06 | 46.16 ▲8.59 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 42.28 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 88.39 ▼551.64 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 30.26 ▲1.59 |
Sample Sales op je site (NL) /wp-admin/options-general.php?page=ssnl_pluginmenu | 3.02 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 15.90 ▲0.28 | 9.69 ▼0.01 | 49.74 ▲1.22 |
Dashboard /wp-admin | 2,975 ▲44 | 5.91 ▼0.25 | 136.45 ▼27.70 | 113.90 ▼3.43 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 61.36 ▼1.26 | 91.78 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,879 ▲203 | 19.19 ▲0.40 | 366.03 ▲3.86 | 104.21 ▼5.80 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.03 ▲0.01 | 157.56 ▲6.87 | 122.72 ▼5.91 |
Sample Sales op je site (NL) /wp-admin/options-general.php?page=ssnl_pluginmenu | 1,150 | 2.08 | 55.55 | 72.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
- > PHP Notice
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:
- Screenshots: Please describe screenshot #0 in sample-sales-op-je-site-nl/assets to your readme.txt
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 53 | 248 |
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 code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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