90% wake-up

Code Review | Wake Up!

WordPress plugin Wake Up! scored90%from 54 tests.

About plugin

  • Plugin page: wake-up
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2023
  • Latest release: Oct 13, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /36 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.56ms] Passed 4 tests

Analyzing server-side resources used by Wake Up!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.02 ▲2.98
Dashboard /wp-admin3.31 ▲0.0150.40 ▲1.34
Posts /wp-admin/edit.php3.36 ▲0.0050.45 ▼2.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.97 ▼18.37
Media Library /wp-admin/upload.php3.23 ▲0.0038.18 ▲1.15

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

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

Browser metrics Passed 4 tests

Wake Up!: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.41 ▲0.061.73 ▼0.0944.71 ▲3.57
Dashboard /wp-admin2,195 ▲185.61 ▲0.08102.37 ▲11.6241.74 ▼2.90
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0235.06 ▲0.7033.87 ▼2.90
Add New Post /wp-admin/post-new.php1,531 ▲323.17 ▲0.15670.70 ▼14.6251.30 ▼12.66
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.03108.24 ▼0.3548.72 ▲1.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: wakeup, idle

wake-up/wake-up.php Passed 13 tests

The primary PHP file in "Wake Up!" version 1.0.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Popup when an admin in admin area becomes idle for 30 seconds.

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
There were no executable files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151620

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin