78% super-blog-pack

Code Review | Super Blog Pack: Like, Share, Review, Ratings all in one

WordPress plugin Super Blog Pack: Like, Share, Review, Ratings all in one scored78%from 54 tests.

About plugin

  • Plugin page: super-blog-pack
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 2, 2017
  • Latest release: Jan 29, 2019
  • Number of updates: 6
  • Update frequency: every 82.0 days
  • Top authors: themestones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.91ms] Passed 4 tests

Analyzing server-side resources used by Super Blog Pack: Like, Share, Review, Ratings all in one
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0323.83 ▼13.67
Dashboard /wp-admin3.36 ▲0.0245.19 ▼12.37
Posts /wp-admin/edit.php3.48 ▲0.1248.10 ▼3.48
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.67 ▼6.10
Media Library /wp-admin/upload.php3.28 ▲0.0635.40 ▼0.05
Post meta /wp-admin/admin.php?page=sbp-post-meta3.2834.73
Post share /wp-admin/admin.php?page=sbp-post-share3.2839.05
Post reviews /wp-admin/admin.php?page=sbp-post-reviews3.2836.33
Related Posts /wp-admin/admin.php?page=sbp-related-post3.2833.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
_ts_sbp_options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Super Blog Pack: Like, Share, Review, Ratings all in one
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20413.59 ▼0.845.18 ▲3.5636.34 ▼5.07
Dashboard /wp-admin2,237 ▲854.86 ▼0.83106.54 ▲12.2038.87 ▼1.13
Posts /wp-admin/edit.php2,117 ▲282.01 ▼0.1339.38 ▼1.5835.21 ▼3.32
Add New Post /wp-admin/post-new.php1,568 ▲4017.98 ▼0.11582.23 ▼10.0144.93 ▼6.15
Media Library /wp-admin/upload.php1,419 ▲314.16 ▼0.04100.43 ▲5.1040.91 ▼3.05
Post meta /wp-admin/admin.php?page=sbp-post-meta1,1763.2939.8228.01
Post share /wp-admin/admin.php?page=sbp-post-share1,1723.3041.0526.43
Post reviews /wp-admin/admin.php?page=sbp-post-reviews1,1643.1840.0323.45
Related Posts /wp-admin/admin.php?page=sbp-related-post1,1613.2338.3722.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • _ts_sbp_options
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/super-blog-pack/templates/review/user-reviews/reviews-after.php
    • > /wp-content/plugins/super-blog-pack/templates/related/related-after.php
    • > /wp-content/plugins/super-blog-pack/templates/review/user-reviews/reviews-before.php
  • 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ts_sbp_has_liked_post() in wp-content/plugins/super-blog-pack/templates/meta/meta-likes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ts_sbp_review_nav() in wp-content/plugins/super-blog-pack/templates/review/user-reviews/nav.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/super-blog-pack/templates/related/related-before.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/super-blog-pack/templates/review/user-reviews/single-review.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/super-blog-pack/super-blog-pack.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/super-blog-pack/templates/review/user-reviews/star-rating.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/super-blog-pack/templates/meta/meta-views.php:10
    • > PHP Notice
      Trying to get property 'post_count' of non-object in wp-content/plugins/super-blog-pack/templates/related/related-before.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ts_sbp_get_rating_count() in wp-content/plugins/super-blog-pack/templates/meta/meta-rating.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/super-blog-pack/templates/review/form/star-rating.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: related, like, share counter, share, reviews...

super-blog-pack/super-blog-pack.php 92% from 13 tests

Analyzing the main PHP file in "Super Blog Pack: Like, Share, Review, Ratings all in one" version 1.0
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,454 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP245146931,669
CSS49350571
JavaScript2377155
SVG10059

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity51.00
▷ Minimum class complexity27.00
▷ Maximum class complexity72.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/thumb.png7.76KB2.94KB▼ 62.14%