84% batch-paging-images

Code Review | Batch add Image paging separators

WordPress plugin Batch add Image paging separators scored84%from 54 tests.

About plugin

  • Plugin page: batch-paging-images
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: Oct 8, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: cc2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /443 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.13MB] [CPU: ▼26.72ms] Passed 4 tests

This is a short check of server-side resources used by Batch add Image paging separators
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0454.25 ▲5.03
Dashboard /wp-admin3.31 ▲0.0162.57 ▲10.83
Posts /wp-admin/edit.php3.36 ▼0.4859.20 ▼28.22
Add New Post /wp-admin/post-new.php5.89 ▲0.00114.47 ▼83.44
Media Library /wp-admin/upload.php3.23 ▲0.0043.57 ▼0.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Batch add Image paging separators
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲7014.40 ▲0.143.30 ▲1.5154.36 ▼3.91
Dashboard /wp-admin2,202 ▲144.88 ▼0.02121.57 ▲3.4158.07 ▲8.64
Posts /wp-admin/edit.php2,094 ▲262.05 ▲0.0651.88 ▼25.9856.83 ▼8.80
Add New Post /wp-admin/post-new.php1,530 ▲11923.17 ▲5.70798.59 ▼268.4549.76 ▼39.19
Media Library /wp-admin/upload.php1,393 ▲24.16 ▼0.02100.65 ▼57.9550.50 ▼17.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/batch-paging-images/cancms-auto-paging.php:13

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)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 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
1 plugin tags: auto add paging separator

batch-paging-images/cancms-auto-paging.php 85% from 13 tests

The main PHP file in "Batch add Image paging separators" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("batch-paging-images.php" instead of "cancms-auto-paging.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected118 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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