84% reckoning

Code Review | Reckoning

WordPress plugin Reckoning scored84%from 54 tests.

About plugin

  • Plugin page: reckoning
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2014
  • Latest release: Feb 22, 2017
  • Number of updates: 8
  • Update frequency: every 128.8 days
  • Top authors: Shawn Patrick Rice (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /918 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.04MB] [CPU: ▼3.53ms] Passed 4 tests

An overview of server-side resources used by Reckoning
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0349.99 ▲8.19
Dashboard /wp-admin3.34 ▲0.0449.82 ▼2.08
Posts /wp-admin/edit.php3.39 ▲0.0451.87 ▲1.71
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.74 ▼14.85
Media Library /wp-admin/upload.php3.27 ▲0.0438.04 ▲1.12
User Summary /wp-admin/users.php?page=Reckoning3.2831.39

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Reckoning
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.21 ▼1.182.20 ▲0.5645.85 ▲6.38
Dashboard /wp-admin2,212 ▲244.83 ▼1.07111.16 ▼14.9938.32 ▼6.97
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0441.79 ▲4.4935.38 ▲0.62
Add New Post /wp-admin/post-new.php1,533 ▼422.96 ▲4.55635.61 ▲7.0453.37 ▼10.23
Media Library /wp-admin/upload.php1,394 ▲34.20 ▲0.0595.56 ▼3.5442.63 ▼1.80
User Summary /wp-admin/users.php?page=Reckoning6801.536.2021.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/users.php?page=Reckoning
    • > Error in wp-content/plugins/reckoning/reckoning.php+206
    Uncaught Error: Call to undefined function get_blog_details() in wp-content/plugins/reckoning/reckoning.php:206
    Stack trace:
    #0 wp-content/plugins/reckoning/reckoning.php(81): display_reckoning_admin_page_all()
    #1 wp-includes/class-wp-hook.php(310): display_reckoning_admin_page()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 wp-admin/users.php(11): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: comments, reckoning, education, teaching, tools...

reckoning/reckoning.php Passed 13 tests

This is the main PHP file of "Reckoning" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Tallies posts / comments per user per blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin236 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32483199
CSS14337

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png73.38KB22.91KB▼ 68.78%
assets/screenshot-5.png44.39KB12.90KB▼ 70.95%
assets/screenshot-3.png27.62KB7.33KB▼ 73.46%
assets/screenshot-1.png68.51KB20.29KB▼ 70.38%
assets/screenshot-4.png29.02KB8.27KB▼ 71.51%