84% time-limited-account

Code Review | Time Limited Account

WordPress plugin Time Limited Account scored84%from 54 tests.

About plugin

  • Plugin page: time-limited-account
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2014
  • Latest release: Mar 15, 2014
  • Number of updates: 21
  • Update frequency: every 0.1 days
  • Top authors: aymanalzarrad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼11.23ms] Passed 4 tests

An overview of server-side resources used by Time Limited Account
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.74 ▼3.20
Dashboard /wp-admin3.35 ▲0.0149.34 ▼17.40
Posts /wp-admin/edit.php3.40 ▲0.0547.95 ▼3.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.97 ▼20.93
Media Library /wp-admin/upload.php3.27 ▲0.0538.57 ▼1.46
Limited Account /wp-admin/users.php?page=limited_account3.2435.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Time Limited Account
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▼0.271.85 ▼0.5546.21 ▲3.15
Dashboard /wp-admin2,199 ▲225.61 ▼0.0488.98 ▼4.2039.95 ▼4.78
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0138.11 ▲3.4134.94 ▼1.31
Add New Post /wp-admin/post-new.php1,529 ▲323.54 ▲0.09633.53 ▼61.3449.47 ▼9.33
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.03100.25 ▼18.0544.91 ▼1.05
Limited Account /wp-admin/users.php?page=limited_account8322.0024.3632.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/time-limited-account/uninstall.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-limited-account/admin.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-limited-account/login.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/time-limited-account/time-limited-account.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-limited-account/loggedin.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/time-limited-account/options.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

time-limited-account/time-limited-account.php Passed 13 tests

Analyzing the main PHP file in "Time Limited Account" version 1.0
113 characters long description:
With this plugin you can time limite the users accounts registered on your website for a specific amount of time.

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
There were no executable files found in this plugin218 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP64162218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin