84% busy-server

Code Review | Busy Server

WordPress plugin Busy Server scored84%from 54 tests.

About plugin

  • Plugin page: busy-server
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2014
  • Latest release: Jul 17, 2014
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: gibbon.cz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /841 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Busy Server
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.30 ▼2.05
Dashboard /wp-admin3.31 ▼0.0348.03 ▼19.15
Posts /wp-admin/edit.php3.36 ▲0.0152.88 ▲8.93
Add New Post /wp-admin/post-new.php5.89 ▲0.01105.66 ▲2.65
Media Library /wp-admin/upload.php3.23 ▲0.0137.52 ▲0.33
Busy Server /wp-admin/options-general.php?page=busy-server-menu3.2332.54

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

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

Browser metrics Passed 4 tests

Busy Server: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼1.081.63 ▼0.3744.33 ▲0.70
Dashboard /wp-admin2,213 ▲314.84 ▼1.02103.30 ▼2.3143.96 ▼1.12
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0338.85 ▼0.0435.59 ▲2.00
Add New Post /wp-admin/post-new.php1,545 ▲3123.28 ▲5.65680.19 ▲21.2867.47 ▲17.97
Media Library /wp-admin/upload.php1,392 ▲104.19 ▲0.02117.10 ▲15.4451.38 ▲4.31
Busy Server /wp-admin/options-general.php?page=busy-server-menu8162.0327.0031.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/busy-server/busy-server.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === busy-server === )
You can look at the official readme.txt

busy-server/busy-server.php Passed 13 tests

The main file in "Busy Server" v. 0.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
When the server load is higher than specified, show an error message instead of loading the page.

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
Everything looks great! No dangerous files found in this plugin112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22846112

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin