73% powerkit

Code Review | Powerkit – Supercharge your WordPress Site

WordPress plugin Powerkit – Supercharge your WordPress Site scored73%from 54 tests.

About plugin

  • Plugin page: powerkit
  • Plugin version: 2.9.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 20, 2018
  • Latest release: Aug 30, 2023
  • Number of updates: 267
  • Update frequency: every 7.3 days
  • Top authors: codesupplyco (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

20,000+ active /608,057 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲3.79MB] [CPU: ▲51.39ms] Passed 4 tests

This is a short check of server-side resources used by Powerkit – Supercharge your WordPress Site
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /7.27 ▲3.8098.55 ▲58.32
Dashboard /wp-admin7.11 ▲3.80104.14 ▲43.43
Posts /wp-admin/edit.php7.16 ▲3.8098.32 ▲48.72
Add New Post /wp-admin/post-new.php10.09 ▲4.20155.11 ▲62.17
Media Library /wp-admin/upload.php6.98 ▲3.7592.66 ▲55.10
Table of Contents /wp-admin/options-general.php?page=powerkit_table_of_contents6.9583.14
Opt-in Forms /wp-admin/options-general.php?page=powerkit_opt_in_forms6.9577.33
Social Links /wp-admin/options-general.php?page=powerkit_social_links7.06241.03
Connect /wp-admin/options-general.php?page=powerkit_connect6.9882.68
Post Views /wp-admin/options-general.php?page=powerkit_post_views6.9489.94
Coming Soon /wp-admin/options-general.php?page=powerkit_coming_soon6.9786.00
Share Buttons /wp-admin/options-general.php?page=powerkit_share_buttons6.9687.01

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 303 new files
Database: 1 new table, 22 new options
New tables
wp_pk_post_views
New WordPress options
can_compress_scripts
powerkit_coming_soon_page
widget_powerkit_pinterest_board_widget
widget_powerkit_widget_author
widget_powerkit_widget_posts
widget_powerkit_widget_contributors
widget_powerkit_facebook_fanpage_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
...

Browser metrics Passed 4 tests

Powerkit – Supercharge your WordPress Site: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,109 ▲37416.70 ▲2.4962.01 ▲59.8143.23 ▼3.05
Dashboard /wp-admin2,303 ▲1155.15 ▼0.75130.37 ▲22.6147.64 ▲6.95
Posts /wp-admin/edit.php2,197 ▲1082.35 ▲0.3139.07 ▲0.8634.92 ▼0.62
Add New Post /wp-admin/post-new.php6,370 ▲4,83724.53 ▲1.391,074.64 ▲395.1136.15 ▼6.50
Media Library /wp-admin/upload.php1,499 ▲1114.53 ▲0.30113.89 ▼1.5746.64 ▼0.76
Table of Contents /wp-admin/options-general.php?page=powerkit_table_of_contents1,0552.1028.8925.36
Opt-in Forms /wp-admin/options-general.php?page=powerkit_opt_in_forms9862.1335.6931.03
Social Links /wp-admin/options-general.php?page=powerkit_social_links5,2852.4094.7182.25
Connect /wp-admin/options-general.php?page=powerkit_connect1,0902.2937.5631.83
Post Views /wp-admin/options-general.php?page=powerkit_post_views9562.0534.8835.00
Coming Soon /wp-admin/options-general.php?page=powerkit_coming_soon1,0122.1437.7629.67
Share Buttons /wp-admin/options-general.php?page=powerkit_share_buttons1,4872.3544.6239.77

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 22 options in the database
    • db_upgraded
    • widget_powerkit_twitter_widget
    • widget_powerkit_pinterest_profile_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • powerkit_coming_soon_page
    • widget_powerkit_widget_author
    • widget_powerkit_facebook_fanpage_widget
    • powerkit_coming_soon_init
    • widget_powerkit_widget_contributors
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 77 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=powerkit_share_buttons
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=powerkit_share_buttons
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=powerkit_share_buttons
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=powerkit_share_buttons
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/powerkit/powerkit.php
  • 197× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/powerkit/modules/featured-categories/public/block/render.php on line 17
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/powerkit/modules/author-box/public/block/render.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'Powerkit_Module_Public' not found in wp-content/plugins/powerkit/modules/pinterest/public/class-powerkit-pinterest-public.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/powerkit/modules/post-views/helpers/db-powerkit-post-views.php:15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/powerkit/modules/contributors/public/block/render.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function powerkit_connect() in wp-content/plugins/powerkit/extensions/connect/tab-instagram.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/powerkit/modules/featured-categories/public/block/render.php on line 16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/powerkit/modules/instagram/public/block/render.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/powerkit/modules/author-box/public/block/render.php on line 21
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/powerkit/modules/featured-categories/public/block/render.php on line 19

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: lightbox, gallery, pinterest, share buttons, social links...

powerkit/powerkit.php Passed 13 tests

The entry point to "Powerkit – Supercharge your WordPress Site" version 2.9.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
Powerkit – essential components for every WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected37,746 lines of code in 294 files:
LanguageFilesBlank linesComment linesLines of code
PHP1964,4157,30718,081
CSS574,00753517,870
JavaScript314273211,296
JSX78290385
SVG100108
XML1005
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.43
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes122
▷ Abstract classes00.00%
▷ Concrete classes122100.00%
▷ Final classes00.00%
Methods552
▷ Static methods10.18%
▷ Public methods53697.10%
▷ Protected methods101.81%
▷ Private methods61.09%
Functions250
▷ Named functions21586.00%
▷ Anonymous functions3514.00%
Constants8
▷ Global constants8100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
modules/basic-elements/admin/images/icon.png3.81KB0.14KB▼ 96.39%