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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.03ms] Passed 4 tests
An overview of server-side resources used by WP Spykey
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 245.43 ▲204.78 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.62 ▲1.01 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 44.60 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.42 ▼7.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 38.00 ▲2.87 |
WPSK Statistics /wp-admin/options-general.php?page=wpsk-statistics | 3.29 | 32.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_user_addresses |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Spykey
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 14.75 ▲0.20 | 1.95 ▼0.03 | 43.23 ▲4.78 |
Dashboard /wp-admin | 2,217 ▲29 | 5.90 ▲0.97 | 96.53 ▼14.70 | 38.22 ▼2.48 |
Posts /wp-admin/edit.php | 2,076 ▼10 | 2.04 ▲0.02 | 33.82 ▼1.61 | 33.14 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,521 ▼1 | 23.36 ▲0.20 | 669.56 ▲76.01 | 54.01 ▼0.36 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.22 ▼0.07 | 102.67 ▲5.73 | 50.06 ▲7.33 |
WPSK Statistics /wp-admin/options-general.php?page=wpsk-statistics | 865 | 2.04 | 24.58 | 30.60 |
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 successfully, leaving 1 table in the database
- wp_user_addresses
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpsk-statistics
- > Deprecated in wp-content/plugins/wp-spykey/wpsk_statistics.php+13
parse_str(): Calling parse_str() without the result argument is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spykey/wp-spykey.php:14
- > 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 on the user side
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-spykey ===
)
wp-spykey/wp-spykey.php Passed 13 tests
The entry point to "WP Spykey" version 1.0 is a PHP file that has certain tags in its header comment area
134 characters long description:
This plugin will tell you when each of your users had logged in & give you an detailed information about the visitors on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected516 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 70 | 23 | 378 |
CSS | 1 | 3 | 1 | 50 |
Sass | 1 | 9 | 0 | 46 |
JavaScript | 1 | 4 | 0 | 42 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected