84% vanilla-bean-meta-maid

Code Review | Vanilla Bean - Meta Maid

WordPress plugin Vanilla Bean - Meta Maid scored84%from 54 tests.

About plugin

  • Plugin page: vanilla-bean-meta...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: May 12, 2023
  • Number of updates: 34
  • Update frequency: every 89.2 days
  • Top authors: vsmash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,281 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.34ms] 75% from 4 tests

Server-side resources used by Vanilla Bean - Meta Maid
Please have a look at the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 635.38ms on /wp-admin/admin.php?page=vanillabeans-settings)
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.80 ▼1.05
Dashboard /wp-admin3.31 ▼0.0347.84 ▼18.47
Posts /wp-admin/edit.php3.37 ▲0.0149.07 ▼7.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.65 ▼21.12
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▼2.19
Meta Maid /wp-admin/admin.php?page=vanilla-bean-meta-maid/vanilla-bean-meta-maid.php3.2033.62
Vanilla Beans /wp-admin/admin.php?page=vanillabeans-settings3.54635.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Vanilla Bean - Meta Maid
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.14 ▼0.431.85 ▲0.2839.33 ▲1.55
Dashboard /wp-admin2,220 ▲495.65 ▲0.0779.02 ▼8.1878.59 ▲36.95
Posts /wp-admin/edit.php2,122 ▲191.98 ▼0.0133.71 ▼9.6734.11 ▼3.49
Add New Post /wp-admin/post-new.php1,545 ▲1723.53 ▲0.33782.14 ▲183.0752.51 ▼11.09
Media Library /wp-admin/upload.php1,422 ▲194.11 ▼0.0993.79 ▼4.4171.84 ▲28.51
Meta Maid /wp-admin/admin.php?page=vanilla-bean-meta-maid/vanilla-bean-meta-maid.php9342.1221.8322.64
Vanilla Beans /wp-admin/admin.php?page=vanillabeans-settings1,4752.1723.7431.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function VanillaBeans\\MetaMaid\\add_action() in wp-content/plugins/vanilla-bean-meta-maid/inc/meta-maid.php:23

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 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === vanilla-bean-meta-maid === )
The official readme.txt is a good inspiration

vanilla-bean-meta-maid/vanilla-bean-meta-maid.php Passed 13 tests

The principal PHP file in "Vanilla Bean - Meta Maid" v. 2.0.4 is loaded by WordPress automatically on each request
38 characters long description:
Simple header and footer code injector

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,574 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG212868
PHP413167706

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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
Namespaces2
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vicon32.png2.21KB1.37KB▼ 38.29%
vicon.png1.86KB0.98KB▼ 47.22%