Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/picknwork-security/includes/function.php+583
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/picknwork-security/includes/function.php:583
Stack trace:
#0 wp-content/plugins/picknwork-security/includes/function.php(649): pnw_push()
#1 wp-content/plugins/picknwork-security/includes/function.php(655): pnw_get_all_setting()
#2 wp-content/plugins/picknwork-security/picknworksecurity.php(96): include('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#4 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.46ms] Passed 4 tests
An overview of server-side resources used by Picknwork Security
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.75 ▼0.57 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.37 ▼19.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.58 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.28 ▼10.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 44.86 ▲8.16 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Picknwork Security
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.16 ▼1.27 | 2.08 ▲0.47 | 43.93 ▲4.82 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲0.02 | 101.03 ▼18.28 | 41.23 ▼0.98 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.04 | 36.53 ▲0.10 | 34.69 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.03 ▼0.10 | 638.56 ▼32.50 | 61.47 ▲7.46 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.04 | 92.71 ▼24.67 | 41.95 ▼5.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/picknwork-security/picknworksecurity.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/picknwork-security/includes/forms.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/picknwork-security/includes/function.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/picknwork-security/templates/admin-activation.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function pnw_get_all_emails() in wp-content/plugins/picknwork-security/templates/admin-message-users-email.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function pnw_get_all_blocked() in wp-content/plugins/picknwork-security/templates/admin-blocked.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function pnw_get_all_emails() in wp-content/plugins/picknwork-security/templates/admin-email-list.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function pnw_get_keys() in wp-content/plugins/picknwork-security/templates/admin-authentication.php:23
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/picknwork-security/includes/function.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/picknwork-security/templates/admin-add-blocked.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function pnw_remove_query() in wp-content/plugins/picknwork-security/includes/reset-password.php:7
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: login, athentication, picknworksecurity, otp, register...
picknwork-security/picknworksecurity.php 92% from 13 tests
"Picknwork Security" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("picknwork-security.php" instead of "picknworksecurity.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,364 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 965 | 519 | 2,322 |
CSS | 4 | 283 | 42 | 793 |
JavaScript | 3 | 100 | 45 | 249 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 47 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected