84% startwp-extended

Code Review | StartWP Extended

WordPress plugin StartWP Extended scored84%from 54 tests.

About plugin

  • Plugin page: startwp-extended
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 7, 2018
  • Latest release: Apr 26, 2018
  • Number of updates: 4
  • Update frequency: every 5.0 days
  • Top authors: munirkamal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /14,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.64ms] Passed 4 tests

An overview of server-side resources used by StartWP Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.52 ▼2.79
Dashboard /wp-admin3.31 ▲0.0151.94 ▲1.11
Posts /wp-admin/edit.php3.36 ▲0.0149.24 ▲3.56
Add New Post /wp-admin/post-new.php5.89 ▲0.01108.95 ▲19.56
Media Library /wp-admin/upload.php3.23 ▲0.0140.21 ▲4.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for StartWP Extended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲5414.43 ▲0.082.11 ▼0.3844.80 ▼4.33
Dashboard /wp-admin2,221 ▲185.86 ▲0.02109.61 ▲1.5541.82 ▼1.80
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0040.58 ▲3.4234.38 ▼1.29
Add New Post /wp-admin/post-new.php1,546 ▼1023.25 ▲4.89670.73 ▼1.1554.56 ▼1.62
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.00127.85 ▲26.0557.26 ▲12.14

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 items
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/startwp-extended/inc/admin/class-startwp-extensions-page.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/startwp-extended/inc/customizer/woocommerce/woocommerce-single.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/startwp-extended/inc/customizer/EDD/edd-archive.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/startwp-extended/inc/customizer/woocommerce/woocommerce-archive.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/startwp-extended/startwp-extended.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/startwp-extended/inc/customizer/EDD/edd-single.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/startwp-extended/inc/customizer/woocommerce/woocommerce-general.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/startwp-extended/inc/customizer.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were not plugin tags detected

startwp-extended/startwp-extended.php 92% from 13 tests

"StartWP Extended" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected2,551 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP82801832,526
CSS111025

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected