84% post-kits-for-elementor

Code Review | Post Kits for Elementor

WordPress plugin Post Kits for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: post-kits-for-ele...
  • Plugin version: 3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.3
  • WordPress version: 6.3.1
  • First release: Dec 18, 2019
  • Latest release: Sep 24, 2020
  • Number of updates: 14
  • Update frequency: every 20.1 days
  • Top authors: alithemes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /9,775 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.06MB] [CPU: ▼11.59ms] Passed 4 tests

Server-side resources used by Post Kits for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.76 ▼18.96
Dashboard /wp-admin3.36 ▲0.0645.85 ▼4.65
Posts /wp-admin/edit.php3.47 ▲0.1247.46 ▲2.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0683.79 ▼24.77
Media Library /wp-admin/upload.php3.28 ▲0.0536.72 ▲2.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Kits for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4714.47 ▲0.071.68 ▼0.3541.32 ▼4.44
Dashboard /wp-admin2,224 ▲335.82 ▲0.93100.58 ▼4.2741.40 ▼5.69
Posts /wp-admin/edit.php2,106 ▲351.98 ▼0.0038.36 ▼3.7637.72 ▼3.80
Add New Post /wp-admin/post-new.php1,547 ▲1423.20 ▲0.11754.37 ▲88.7161.48 ▲5.35
Media Library /wp-admin/upload.php1,406 ▲214.19 ▼0.0398.78 ▼4.0040.72 ▼4.26

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 271× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: the_query in wp-content/plugins/post-kits-for-elementor/widgets/post-aside/post-aside-4.php on line 4
    • > PHP Notice
      Undefined variable: the_query in wp-content/plugins/post-kits-for-elementor/widgets/post-aside/post-aside-3.php on line 4
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/post-kits-for-elementor/widgets/post-aside/post-aside-3.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/post-kits-for-elementor/widgets/post-aside/post-aside-frontend.php on line 16
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/post-kits-for-elementor/widgets/post-aside/post-aside-frontend.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function alith_layout_header() in wp-content/plugins/post-kits-for-elementor/widgets/post-modules/post-module-7.php:13
    • > PHP Notice
      Undefined variable: the_query in wp-content/plugins/post-kits-for-elementor/widgets/post-modules/post-module-5.php on line 4
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/post-kits-for-elementor/widgets/post-modules/post-module-11.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/post-kits-for-elementor/widgets/post-modules/post-module-10.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function alith_layout_header() in wp-content/plugins/post-kits-for-elementor/widgets/post-grid/post-grid-12.php:13

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 Passed 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
3 plugin tags: elementor widgets, elementor kits, elementor post

post-kits-for-elementor/post-kits-for-elementor.php Passed 13 tests

The main PHP file in "Post Kits for Elementor" ver. 3.2 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
News, Magazine, Blog Kits for Elementor plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin12,986 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP531,14433011,026
CSS7621091,573
SVG100362
JavaScript453725

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.24
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes42
▷ Abstract classes00.00%
▷ Concrete classes42100.00%
▷ Final classes00.00%
Methods89
▷ Static methods11.12%
▷ Public methods7280.90%
▷ Protected methods55.62%
▷ Private methods1213.48%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants888.89%
▷ Class constants111.11%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/icons-post-module.png7.07KB2.34KB▼ 66.83%
assets/imgs/icons-post-grid.png5.91KB1.43KB▼ 75.85%
assets/imgs/icons-elements.png3.10KB0.16KB▼ 94.93%
assets/imgs/icons-post-aside.png4.21KB0.67KB▼ 84.16%