78% jquery-post-splitter

Code Review | jQuery Post Splitter

WordPress plugin jQuery Post Splitter scored 78% from 54 tests.

About plugin

  • Plugin page: jquery-post-splitter
  • Plugin version: 2.9.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Jun 6, 2023
  • Number of updates: 145
  • Update frequency: every 21.0 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

35 reviews

Install metrics

200+ active / 32,414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.12ms] Passed 4 tests

A check of server-side resources used by jQuery Post Splitter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2743.58 ▲2.35
Dashboard /wp-admin3.34 ▲0.0445.47 ▼5.25
Posts /wp-admin/edit.php3.46 ▲0.1047.32 ▼2.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.10 ▼5.97
Media Library /wp-admin/upload.php3.27 ▲0.0434.09 ▼2.53
Post Splitter /wp-admin/edit.php?page=jpsoptions3.6337.02
jQuery Post Splitter /wp-admin/options-general.php?page=jpsoptions3.6359.63
Page Splitter /wp-admin/edit.php?post_type=page&page=jpsoptions3.6343.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for jQuery Post Splitter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.18 ▼1.412.17 ▲0.3140.53 ▼3.28
Dashboard /wp-admin2,215 ▲365.82 ▲0.9498.22 ▼17.6839.94 ▼4.31
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0537.24 ▲2.9430.75 ▼5.44
Add New Post /wp-admin/post-new.php1,528 ▼517.73 ▼5.49663.30 ▲52.3651.02 ▲1.19
Media Library /wp-admin/upload.php1,400 ▲94.19 ▼0.0393.58 ▼9.3340.14 ▼3.64
Post Splitter /wp-admin/edit.php?page=jpsoptions4,33433.701,054.1288.91
jQuery Post Splitter /wp-admin/options-general.php?page=jpsoptions4,33932.47891.2981.21
Page Splitter /wp-admin/edit.php?post_type=page&page=jpsoptions4,33230.76930.5390.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-post-splitter/inc/functions-essentials.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function jps_get() in wp-content/plugins/jquery-post-splitter/inc/jps-style-data.php:260
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-post-splitter/inc/jps-functions-inner.php:170

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?page=jpsoptions
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?page=jpsoptions 862 The specified value "transparent" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?page=jpsoptions
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?page=jpsoptions 870 The specified value "transparent" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=jpsoptions
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=jpsoptions 862 The specified value "transparent" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=jpsoptions
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=jpsoptions 870 The specified value "transparent" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=page&page=jpsoptions
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=page&page=jpsoptions 862 The specified value "transparent" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/edit.php?post_type=page&page=jpsoptions
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=page&page=jpsoptions 870 The specified value "transparent" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: splitter, post splitter, next page, auto loading, paged posts...

jquery-post-splitter/index.php 77% from 13 tests

Analyzing the main PHP file in "jQuery Post Splitter" version 2.9.8
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jquery-post-splitter.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,579 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,546
PHP91,8351031,844
PO File46476781,440
CSS612318523
JavaScript423113226

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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
Namespaces0
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%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/spotlight.png10.93KB6.68KB▼ 38.89%
images/kbd_banner.png125.13KB42.35KB▼ 66.15%
images/chinese_lantern.png12.30KB8.30KB▼ 32.49%
images/elegent.png13.80KB9.86KB▼ 28.55%
images/milano.png13.24KB8.76KB▼ 33.84%