84% wp-butler

Code Review | WP Butler

WordPress plugin WP Butler scored84%from 54 tests.

About plugin

  • Plugin page: wp-butler
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 8, 2013
  • Latest release: Jul 2, 2013
  • Number of updates: 27
  • Update frequency: every 6.6 days
  • Top authors: japh (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /3,259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.25ms] Passed 4 tests

Server-side resources used by WP Butler
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.75 ▲1.19
Dashboard /wp-admin3.39 ▲0.0553.81 ▼10.32
Posts /wp-admin/edit.php3.44 ▲0.0946.83 ▼7.29
Add New Post /wp-admin/post-new.php5.99 ▲0.1184.72 ▼16.58
Media Library /wp-admin/upload.php3.31 ▲0.0939.62 ▲4.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Butler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.63 ▼0.502.18 ▲0.0142.51 ▲2.41
Dashboard /wp-admin2,253 ▲715.28 ▲0.40111.78 ▲10.3338.75 ▼7.28
Posts /wp-admin/edit.php2,139 ▲472.68 ▲0.6544.69 ▲4.3733.25 ▼2.26
Add New Post /wp-admin/post-new.php1,564 ▲4518.55 ▼4.67609.41 ▲11.4934.89 ▼14.11
Media Library /wp-admin/upload.php1,443 ▲554.72 ▲0.39103.84 ▼2.3041.76 ▼9.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-butler/wp-butler.php:606

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
5 plugin tags: actions, automate, butler, admin, autocomplete

wp-butler/wp-butler.php 92% from 13 tests

The primary PHP file in "WP Butler" version 2.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,331 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS368342781
PHP290172350
PO File52727138
Markdown115032
JavaScript27330

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity4.86
▷ Minimum method complexity2.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jquery-ui-css/images/ui-icons_cc0000_256x240.png4.27KB4.11KB▼ 3.78%
jquery-ui-css/images/ui-icons_999999_256x240.png4.27KB4.11KB▼ 3.78%
jquery-ui-css/images/ui-icons_333333_256x240.png4.27KB4.11KB▼ 3.78%
jquery-ui-css/images/ui-icons_21759b_256x240.png5.23KB4.11KB▼ 21.49%