10% crowdclock

Code Review | CrowdClock

WordPress plugin CrowdClock scored 10% from 54 tests.

About plugin

  • Plugin page: crowdclock
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: May 23, 2014
  • Number of updates: 5
  • Update frequency: every 29.2 days
  • Top authors: ankit_sam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 673 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/crowdclock/crowdclock_Widget.php+27
    Function create_function() is deprecated

Server metrics [RAM: ▼1.94MB] [CPU: ▼53.59ms] Passed 4 tests

This is a short check of server-side resources used by CrowdClock
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.20 ▼34.36
Dashboard /wp-admin2.06 ▼1.246.21 ▼42.86
Posts /wp-admin/edit.php2.06 ▼1.295.92 ▼50.34
Add New Post /wp-admin/post-new.php2.06 ▼3.828.71 ▼86.78
Media Library /wp-admin/upload.php2.06 ▼1.176.13 ▼28.01
CrowdClock /wp-admin/plugins.php?page=crowdclock_PluginSettings2.075.78

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 13 new options
New WordPress options
widget_crowdclock_widget
crowdclock_Plugin__installed
db_upgraded
crowdclock_Plugin__version
widget_theysaidso_widget
theysaidso_admin_options
crowdclock_Plugin_widgetHeight
can_compress_scripts
crowdclock_Plugin_widgetWidth
crowdclock_Plugin_ATextInput
...

Browser metrics Passed 4 tests

Checking browser requirements for CrowdClock
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.79 ▲0.021.91 ▲0.0244.18 ▲0.15
Dashboard /wp-admin2,210 ▲224.85 ▼1.0599.45 ▼11.6739.29 ▼5.28
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0239.25 ▼1.3535.31 ▼1.92
Add New Post /wp-admin/post-new.php1,517 ▼2517.68 ▼0.62667.62 ▲55.5853.88 ▼1.35
Media Library /wp-admin/upload.php1,392 ▲104.21 ▲0.0396.57 ▼3.9341.18 ▼1.60
CrowdClock /wp-admin/plugins.php?page=crowdclock_PluginSettings8702.0322.5726.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/crowdclock/crowdclock_Widget.php+27
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 13 options in the database
    • crowdclock_Plugin_ATextInput
    • crowdclock_Plugin_BTextInput
    • widget_crowdclock_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • crowdclock_Plugin_widgetHeight
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=crowdclock_PluginSettings
    • > Deprecated in wp-content/plugins/crowdclock/crowdclock_Widget.php+27
    Function create_function() is deprecated
    • > GET request to /wp-admin/plugins.php?page=crowdclock_PluginSettings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in crowdclock_Widget is deprecated since version 4.3.0! Use __construct() instead.

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
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/crowdclock/crowdclock_Widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/crowdclock/crowdclock_Widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/crowdclock/crowdclock.php:67

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: crowdclock

crowdclock/crowdclock.php Passed 13 tests

The entry point to "CrowdClock" version 0.1 is a PHP file that has certain tags in its header comment area
28 characters long description:
Instant Appointment Solution

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected515 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9180549515

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.29
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods4863.16%
▷ Protected methods2836.84%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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