84% bulkpress

Code Review | BulkPress

WordPress plugin BulkPress scored 84% from 54 tests.

About plugin

  • Plugin page: bulkpress
  • Plugin version: 0.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.6.1
  • WordPress version: 5.8.1
  • First release: Mar 14, 2013
  • Latest release: Oct 26, 2016
  • Number of updates: 58
  • Update frequency: every 22.8 days
  • Top authors: engelen (55.17%)Jesper800 (46.55%)

Code review

54 tests

User reviews

51 reviews

Install metrics

10,000+ active / 91,893 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼137.87ms] Passed 4 tests

Server-side resources used by BulkPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1536.15 ▲15.01
Dashboard /wp-admin3.31 ▲0.2647.26 ▲10.65
Posts /wp-admin/edit.php3.36 ▲0.2647.05 ▲4.76
Add New Post /wp-admin/post-new.php5.61 ▲0.1889.50 ▼565.82
Media Library /wp-admin/upload.php3.19 ▲0.1933.10 ▼1.07
Terms /wp-admin/admin.php?page=bulkpress-terms3.1730.60
Posts /wp-admin/admin.php?page=bulkpress-posts3.1630.28
BulkPress /wp-admin/admin.php?page=bulkpress3.1626.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by BulkPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,745 ▲14915.91 ▲0.198.78 ▲0.7447.86 ▲2.08
Dashboard /wp-admin3,010 ▲796.07 ▲0.08134.97 ▼4.71114.52 ▲8.96
Posts /wp-admin/edit.php2,779 ▲402.71 ▲0.0265.85 ▲0.1187.55 ▼6.46
Add New Post /wp-admin/post-new.php1,527 ▼14317.13 ▼2.04340.28 ▼14.69112.79 ▼1.21
Media Library /wp-admin/upload.php1,850 ▲435.05 ▲0.07147.17 ▼7.48116.59 ▼9.52
Terms /wp-admin/admin.php?page=bulkpress-terms1,5352.5464.1096.73
Posts /wp-admin/admin.php?page=bulkpress-posts1,7172.5870.4799.17
BulkPress /wp-admin/admin.php?page=bulkpress1,0542.3354.8363.33

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • jwbp_version

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulkpress/lib/admin.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulkpress/lib/ajax.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulkpress/bulkpress.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt might help

bulkpress/bulkpress.php 92% from 13 tests

The main file in "BulkPress" v. 0.3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 388 characters long)

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
Success! There were no dangerous files found in this plugin2,292 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File1282726306

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
▷ Static methods610.00%
▷ Public methods5795.00%
▷ Protected methods00.00%
▷ Private methods35.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort.png1.12KB0.34KB▼ 69.77%
assets/images/listdisplay-comfortable.png1.55KB0.49KB▼ 68.60%
assets/images/listdisplay-cozy.png1.54KB0.48KB▼ 68.76%
assets/images/helper/opacity/FFFFFF-80.png0.91KB0.09KB▼ 89.56%
assets/images/listdisplay-compact.png1.54KB0.48KB▼ 68.71%