90% one-at-a-time

Code Review | One At A Time

WordPress plugin One At A Time scored90%from 54 tests.

About plugin

  • Plugin page: one-at-a-time
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Jan 16, 2021
  • Latest release: Jan 21, 2021
  • Number of updates: 5
  • Update frequency: every 13.6 days
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 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.03MB] [CPU: ▼0.61ms] Passed 4 tests

Server-side resources used by One At A Time
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.92 ▲4.69
Dashboard /wp-admin3.34 ▲0.0448.50 ▼1.59
Posts /wp-admin/edit.php3.39 ▲0.0351.36 ▲8.00
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.97 ▼10.74
Media Library /wp-admin/upload.php3.26 ▲0.0338.96 ▲5.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for One At A Time
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.231.60 ▼0.1737.19 ▼4.19
Dashboard /wp-admin2,206 ▲244.81 ▼1.20111.71 ▲6.7941.86 ▼1.99
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.1339.37 ▲3.3934.08 ▼1.07
Add New Post /wp-admin/post-new.php1,537 ▲2323.13 ▲5.68675.36 ▼23.9564.95 ▲12.03
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0193.76 ▼5.7440.27 ▼7.41

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 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
2 plugin tags: login, one-at-a-time

one-at-a-time/one-at-a-time.php Passed 13 tests

"One At A Time" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Only one administrator at a time can log into your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24610889

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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