89% bulk-view-post

Code Review | Bulk view post

WordPress plugin Bulk view post scored89%from 54 tests.

About plugin

  • Plugin page: bulk-view-post
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.4
  • WordPress version: 6.3.1
  • First release: Nov 2, 2019
  • Latest release: Nov 2, 2019
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: ajayghaghretiya1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /687 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.02MB] [CPU: ▼0.70ms] Passed 4 tests

Server-side resources used by Bulk view post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.88 ▼4.93
Dashboard /wp-admin3.33 ▲0.0353.61 ▲2.00
Posts /wp-admin/edit.php3.38 ▲0.0350.69 ▼1.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.93 ▲1.85
Media Library /wp-admin/upload.php3.25 ▲0.0337.75 ▲2.50

Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/bulk-view-post/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bulk view post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.48 ▲0.111.95 ▲0.1041.34 ▲0.05
Dashboard /wp-admin2,221 ▲155.94 ▲1.07103.74 ▼1.1838.48 ▼3.63
Posts /wp-admin/edit.php2,107 ▲42.01 ▼0.0435.04 ▼5.7133.71 ▼4.76
Add New Post /wp-admin/post-new.php1,545 ▲1923.31 ▲5.69674.94 ▼19.6550.14 ▼5.73
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0499.80 ▼3.8143.44 ▼4.43

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
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Contributors: The plugin tags were not defined
  • Contributors: Plugin contributors not specified
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (View bulk option in post type bulk option.) image not found
The official readme.txt is a good inspiration

bulk-view-post/bulk-view-post.php Passed 13 tests

The principal PHP file in "Bulk view post" v. 1.0.0 is loaded by WordPress automatically on each request
95 characters long description:
This plugin provides the bulk view feature in the admin post, product or any custom post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162454

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png103.85KB36.20KB▼ 65.14%