Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/ram108-sape/include/ram108_sape_widget.php+66
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼186.18ms] Passed 4 tests
A check of server-side resources used by SAPE Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.91 | 9.29 ▼11.48 |
Dashboard /wp-admin | 1.83 ▼1.23 | 6.91 ▼37.27 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 5.33 ▼35.61 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.61 | 6.55 ▼648.31 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 6.10 ▼23.53 |
[ram108] SAPE Links /wp-admin/options-general.php?page=ram108-sape | 1.83 | 5.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ram108-sape |
widget_ram108-swidget |
Browser metrics Passed 4 tests
Checking browser requirements for SAPE Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,698 ▲102 | 15.85 ▲0.38 | 10.52 ▲2.33 | 44.63 ▼2.40 |
Dashboard /wp-admin | 2,984 ▲53 | 5.85 ▼0.11 | 134.13 ▼8.23 | 112.44 ▲2.08 |
Posts /wp-admin/edit.php | 2,753 ▲17 | 2.68 ▼0.02 | 66.41 ▲3.02 | 91.48 ▲0.38 |
Add New Post /wp-admin/post-new.php | 2,068 ▲385 | 19.51 ▲1.10 | 370.05 ▲5.22 | 109.69 ▼1.32 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 5.04 ▲0.03 | 143.41 ▼14.72 | 121.82 ▲8.18 |
[ram108] SAPE Links /wp-admin/options-general.php?page=ram108-sape | 1,264 | 2.21 | 55.14 | 88.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/ram108-sape/include/ram108_sape_widget.php+66
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 1 option in the database
- widget_ram108-swidget
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ram108-sape
- > Deprecated in wp-content/plugins/ram108-sape/include/ram108_sape_widget.php+66
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=ram108-sape
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in ram108_sape_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=ram108-sape
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ram108-sape
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ram108-sape/include/ram108_sape_widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'ram108_sape_plugin' not found in wp-content/plugins/ram108-sape/include/ram108_sape.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ram108-sape/include/plugin_admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ram108-sape/library/settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ram108-sape/plugin.php 85% from 13 tests
This is the main PHP file of "SAPE Links" version 0.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ram108-sape.php" instead of "plugin.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected339 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 122 | 36 | 329 |
CSS | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin