10% keeping-points

Code Review | Keeping Points

WordPress plugin Keeping Points scored10%from 54 tests.

About plugin

  • Plugin page: keeping-points
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: Mar 10, 2016
  • Number of updates: 40
  • Update frequency: every 3.4 days
  • Top authors: laughlin.david (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,529 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/keeping-points/keeping-points.php+191
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▼1.84MB] [CPU: ▼62.52ms] Passed 4 tests

A check of server-side resources used by Keeping Points
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.327.41 ▼34.77
Dashboard /wp-admin2.17 ▼1.146.56 ▼48.53
Posts /wp-admin/edit.php2.17 ▼1.195.37 ▼44.01
Add New Post /wp-admin/post-new.php2.17 ▼3.725.86 ▼122.75
Media Library /wp-admin/upload.php2.17 ▼1.065.32 ▼34.67
Keeping Points /wp-admin/options-general.php?page=keeping-points/keeping-points.php2.174.90

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
keeping_points_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Keeping Points
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.25 ▲0.031.99 ▼0.3441.90 ▲0.69
Dashboard /wp-admin2,209 ▲214.87 ▼1.01115.95 ▲5.5149.38 ▼11.03
Posts /wp-admin/edit.php2,095 ▲32.03 ▲0.0341.34 ▲0.3238.45 ▼0.22
Add New Post /wp-admin/post-new.php1,533 ▲1323.24 ▼0.10626.61 ▼127.2473.90 ▼7.84
Media Library /wp-admin/upload.php1,394 ▲64.15 ▼0.07111.99 ▼8.8944.46 ▼1.71
Keeping Points /wp-admin/options-general.php?page=keeping-points/keeping-points.php9822.0530.6644.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/keeping-points/keeping-points.php+191
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > Deprecated in wp-content/plugins/keeping-points/keeping-points.php+191
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > Notice in wp-content/plugins/keeping-points/keeping-points.php+304
    Undefined index: button_amount
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > Notice in wp-content/plugins/keeping-points/keeping-points.php+297
    Undefined index: button_color
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > Notice in wp-content/plugins/keeping-points/keeping-points.php+154
    Undefined variable: options
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > Notice in wp-content/plugins/keeping-points/keeping-points.php+154
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > Notice in wp-content/plugins/keeping-points/keeping-points.php+165
    Undefined index: ppl_amount
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=keeping-points/keeping-points.php
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% 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× 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/keeping-points/keeping-points.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: rewards system, points tracking system, buttons, buttons for points, points...

keeping-points/keeping-points.php Passed 13 tests

The entry point to "Keeping Points" version 1.2 is a PHP file that has certain tags in its header comment area
101 characters long description:
A great plugin to assist in keeping points for a church program or for employees in a rewards system.

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
There were no executable files found in this plugin394 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28597355
JavaScript251639

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook-icon.png1.65KB1.61KB▼ 2.89%
assets/screenshot-2.png60.01KB21.49KB▼ 64.20%
images/btn-colors.png8.39KB3.51KB▼ 58.23%
assets/screenshot-1.png65.26KB24.99KB▼ 61.71%