89% theme-powerkit

Code Review | Theme Powerkit

WordPress plugin Theme Powerkit scored89%from 54 tests.

About plugin

  • Plugin page: theme-powerkit
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 28, 2020
  • Latest release: Sep 8, 2020
  • Number of updates: 3
  • Update frequency: every 100.7 days
  • Top authors: themeinwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Theme Powerkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.10 ▼2.30
Dashboard /wp-admin3.50 ▲0.1660.14 ▼4.08
Posts /wp-admin/edit.php3.56 ▲0.2053.53 ▼1.23
Add New Post /wp-admin/post-new.php6.02 ▲0.1388.12 ▼32.99
Media Library /wp-admin/upload.php3.34 ▲0.1136.84 ▲1.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 13 new options
New WordPress options
widget_theme-powerkit-ad-box
widget_recent-posts
widget_theme-powerkit-tabbed
can_compress_scripts
widget_theme-powerkit-social-layout
widget_theysaidso_widget
tpk_options_settings
widget_theme-powerkit-popular-sidebar-layout
widget_theme-powerkit-author-layout
widget_theme-powerkit-category-layout
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Powerkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,103 ▲34216.99 ▲2.645.79 ▲4.2044.66 ▼1.55
Dashboard /wp-admin2,382 ▲2027.76 ▲2.15152.47 ▲63.2455.04 ▲13.18
Posts /wp-admin/edit.php2,322 ▲2225.16 ▲3.1362.07 ▲21.1446.36 ▲8.54
Add New Post /wp-admin/post-new.php6,572 ▲5,04424.62 ▲1.49915.27 ▲246.3476.95 ▲22.60
Media Library /wp-admin/upload.php1,455 ▲555.29 ▲1.1191.78 ▼5.5655.58 ▲15.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 13 options
    • widget_theme-powerkit-social-layout
    • widget_theme-powerkit-author-layout
    • db_upgraded
    • widget_recent-comments
    • widget_theme-powerkit-ad-box
    • widget_theme-powerkit-popular-sidebar-layout
    • widget_theme-powerkit-tabbed
    • widget_recent-posts
    • tpk_options_settings
    • widget_theme-powerkit-category-layout
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

theme-powerkit/theme-powerkit.php 92% from 13 tests

Analyzing the main PHP file in "Theme Powerkit" version 1.0.3
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 318 characters long)

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 detected5,424 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP188883863,983
CSS4169511,112
JavaScript311724282
SVG10047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity43.62
▷ Minimum class complexity10.00
▷ Maximum class complexity91.00
Average method complexity9.55
▷ Minimum method complexity1.00
▷ Maximum method complexity90.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods3589.74%
▷ Protected methods00.00%
▷ Private methods410.26%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected