Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.71MB] [CPU: ▼48.10ms] Passed 4 tests
An overview of server-side resources used by Themepaste Secure Admin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.19 | 10.30 ▼28.24 |
Dashboard /wp-admin | 2.30 ▼1.01 | 11.89 ▼39.53 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.46 ▼37.19 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 13.22 ▼87.44 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 13.80 ▼24.51 |
Themepaste Secure Admin /wp-admin/admin.php?page=wptpsa-page | 2.30 | 12.94 |
Email Activation /wp-admin/admin.php?page=wptpsa-email-template | 2.30 | 13.77 |
User Role Manager /wp-admin/admin.php?page=wptpsa-user-role-manager | 2.30 | 9.84 |
Login Attempts /wp-admin/admin.php?page=wptpsa-login-attempts | 2.30 | 13.14 |
Settings /wp-admin/admin.php?page=wptpsa-settings | 2.30 | 10.61 |
Custom Layout /wp-admin/admin.php?page=wptpsa-layout | 2.30 | 13.64 |
Captcha Activation /wp-admin/admin.php?page=wptpsa-captcha | 2.30 | 12.11 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
wptpsa_version |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Themepaste Secure Admin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲233 | 14.51 ▲0.32 | 1.64 ▼0.03 | 38.43 ▼1.93 |
Dashboard /wp-admin | 2,398 ▲221 | 6.15 ▲0.49 | 131.24 ▲38.34 | 39.70 ▼3.48 |
Posts /wp-admin/edit.php | 2,330 ▲233 | 3.33 ▲1.39 | 51.19 ▲15.89 | 31.57 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 23.40 ▲0.38 | 657.41 ▼23.13 | 35.83 ▼31.23 |
Media Library /wp-admin/upload.php | 1,466 ▲69 | 4.06 ▼0.13 | 93.92 ▼8.50 | 49.44 ▲7.27 |
Themepaste Secure Admin /wp-admin/admin.php?page=wptpsa-page | 1,294 | 3.49 | 46.15 | 64.73 |
Email Activation /wp-admin/admin.php?page=wptpsa-email-template | 1,129 | 3.39 | 48.81 | 55.50 |
User Role Manager /wp-admin/admin.php?page=wptpsa-user-role-manager | 1,126 | 3.59 | 43.59 | 61.19 |
Login Attempts /wp-admin/admin.php?page=wptpsa-login-attempts | 1,129 | 3.46 | 47.17 | 60.91 |
Settings /wp-admin/admin.php?page=wptpsa-settings | 1,224 | 3.46 | 45.48 | 48.25 |
Custom Layout /wp-admin/admin.php?page=wptpsa-layout | 1,407 | 3.55 | 45.96 | 36.38 |
Captcha Activation /wp-admin/admin.php?page=wptpsa-captcha | 1,129 | 3.50 | 43.38 | 69.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/themepaste-secure-admin/themepaste-install.php+5
Undefined variable: wptpsa_version
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptpsa-captcha
- > Notice in wp-content/plugins/themepaste-secure-admin/themepaste-install.php+5
Undefined variable: wptpsa_version
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptpsa-captcha
- > Notice in wp-content/plugins/themepaste-secure-admin/classes/WPTPSABase.php+63
Undefined variable: _SESSION
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptpsa-captcha
- > Notice in wp-content/plugins/themepaste-secure-admin/classes/WPTPSABase.php+63
Trying to access array offset on value of type null
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptpsa-captcha
- > Notice in wp-content/plugins/themepaste-secure-admin/classes/WPTPSABase.php+76
Undefined variable: type
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptpsa-captcha
- > Notice in wp-content/plugins/themepaste-secure-admin/classes/WPTPSABase.php+76
Undefined variable: message
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wptpsa-page
- > Notice in wp-content/plugins/themepaste-secure-admin/themepaste-main-page.php+149
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=wptpsa-layout
- > Notice in wp-content/plugins/themepaste-secure-admin/themepaste-custom-layout.php+128
Undefined index: custom_layout_status
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
- 7× 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/themepaste-secure-admin/themepaste-menu.php:18
- > PHP Warning
Use of undefined constant WPTPSA_PACKAGE - assumed 'WPTPSA_PACKAGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/themepaste-secure-admin/themepaste-pro-features.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepaste-secure-admin/templates/master_status.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepaste-secure-admin/themepaste-main-page.php:175
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepaste-secure-admin/themepaste-install.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/themepaste-secure-admin/themepaste-secure-admin.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepaste-secure-admin/themepaste-custom-layout.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #6 is required in themepaste-secure-admin/assets to your readme.txt
themepaste-secure-admin/themepaste-secure-admin.php 92% from 13 tests
The primary PHP file in "Themepaste Secure Admin" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,809 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 15 | 20 | 1,645 |
JavaScript | 4 | 328 | 176 | 1,548 |
PHP | 12 | 303 | 112 | 1,202 |
SVG | 1 | 0 | 0 | 414 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 11 | 64.71% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 74 | |
▷ Named functions | 74 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/datatable/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
js/datatable/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
js/datatable/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/display_type_2.png | 1.54KB | 1.61KB | 0.00% |
images/display_type_1.png | 1.45KB | 1.59KB | 0.00% |