84% checkin

Code Review | Checkin

WordPress plugin Checkin scored84%from 54 tests.

About plugin

  • Plugin page: checkin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: May 22, 2020
  • Number of updates: 3
  • Update frequency: every 385.0 days
  • Top authors: GeroNikolov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼11.48ms] Passed 4 tests

Analyzing server-side resources used by Checkin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.08 ▼7.07
Dashboard /wp-admin3.36 ▲0.0246.52 ▼18.11
Posts /wp-admin/edit.php3.41 ▲0.0652.82 ▲2.87
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.07 ▼19.47
Media Library /wp-admin/upload.php3.29 ▲0.0638.33 ▼1.28
Add New /wp-admin/post-new.php?post_type=checkin3.4154.48
All Checkins /wp-admin/edit.php?post_type=checkin3.3335.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Checkin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲17113.59 ▼0.645.82 ▲4.0045.22 ▲3.99
Dashboard /wp-admin2,237 ▲454.83 ▼1.01104.08 ▼5.3340.66 ▼3.74
Posts /wp-admin/edit.php2,120 ▲282.03 ▼0.1241.54 ▲0.0234.90 ▲0.24
Add New Post /wp-admin/post-new.php1,541 ▲1323.29 ▲5.08678.85 ▲72.9453.49 ▼0.26
Media Library /wp-admin/upload.php1,416 ▲284.15 ▼0.07102.41 ▼1.4341.99 ▼6.04
Add New /wp-admin/post-new.php?post_type=checkin2,2997.70171.7465.71
All Checkins /wp-admin/edit.php?post_type=checkin1,1011.9432.5531.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/checkin/templates/single-checkin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/checkin/checkin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === checkin === )
The official readme.txt is a good inspiration

checkin/checkin.php Passed 13 tests

The entry point to "Checkin" version 1.0 is a PHP file that has certain tags in its header comment area
89 characters long description:
This plugin will allow you to check where are you at any moment, directly from your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin659 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
Sass2260167
CSS292166
PHP23158166
JavaScript2190160

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin