68% wp-spykey

Code Review | WP Spykey

WordPress plugin WP Spykey scored 68% from 54 tests.

About plugin

  • Plugin page: wp-spykey
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 20, 2016
  • Latest release: Dec 22, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: GeroNikolov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 717 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.06245.43 ▲204.78
Dashboard /wp-admin3.36 ▲0.0648.62 ▲1.01
Posts /wp-admin/edit.php3.41 ▲0.0644.60 ▼0.19
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.42 ▼7.83
Media Library /wp-admin/upload.php3.28 ▲0.0638.00 ▲2.87
WPSK Statistics /wp-admin/options-general.php?page=wpsk-statistics3.2932.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8814.75 ▲0.201.95 ▼0.0343.23 ▲4.78
Dashboard /wp-admin2,217 ▲295.90 ▲0.9796.53 ▼14.7038.22 ▼2.48
Posts /wp-admin/edit.php2,076 ▼102.04 ▲0.0233.82 ▼1.6133.14 ▲0.95
Add New Post /wp-admin/post-new.php1,521 ▼123.36 ▲0.20669.56 ▲76.0154.01 ▼0.36
Media Library /wp-admin/upload.php1,396 ▲54.22 ▼0.07102.67 ▲5.7350.06 ▲7.33
WPSK Statistics /wp-admin/options-general.php?page=wpsk-statistics8652.0424.5830.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP37023378
CSS13150
Sass19046
JavaScript14042

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 code0.38
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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