78% wpezpz-tweaks

Code Review | WP EzPz Tweaks

WordPress plugin WP EzPz Tweaks scored78%from 54 tests.

About plugin

  • Plugin page: wpezpz-tweaks
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Jun 16, 2023
  • Number of updates: 10
  • Update frequency: every 57.6 days
  • Top authors: wpezpz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /865 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: ▲1.03MB] [CPU: ▲4.93ms] Passed 4 tests

Analyzing server-side resources used by WP EzPz Tweaks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.40 ▲0.9444.30 ▲3.76
Dashboard /wp-admin4.41 ▲1.1056.47 ▲2.25
Posts /wp-admin/edit.php4.46 ▲1.1057.77 ▲13.54
Add New Post /wp-admin/post-new.php6.94 ▲1.06101.62 ▲2.59
Media Library /wp-admin/upload.php4.27 ▲1.0446.22 ▲11.13

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 612 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
ezpz_tweaks_dashboard_widgets
widget_recent-posts
db_upgraded
ezpz-tweaks-version
ezpz-tweaks-install-time

Browser metrics Passed 4 tests

WP EzPz Tweaks: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11215.26 ▲0.881.71 ▼0.0157.99 ▲12.10
Dashboard /wp-admin2,235 ▲476.23 ▲0.35142.94 ▲32.0162.37 ▲15.85
Posts /wp-admin/edit.php2,121 ▲323.59 ▲1.5486.07 ▲48.9423.56 ▼13.16
Add New Post /wp-admin/post-new.php1,541 ▼224.26 ▲5.89795.99 ▲153.3931.59 ▼23.29
Media Library /wp-admin/upload.php1,414 ▲325.18 ▲0.96129.26 ▲31.6059.78 ▲16.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • ezpz-tweaks-install-time
    • db_upgraded
    • ezpz-tweaks-version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpezpz-tweaks/wp-ezpz-tweaks.php
    • > /wp-content/plugins/wpezpz-tweaks/vendor/micropackage/requirements/tests/bootstrap.php
  • 169× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wpezpz-tweaks/vendor/micropackage/requirements/tests/Checker/test-wp.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/wpezpz-tweaks/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpezpz-tweaks/vendor/composer/installers/src/Composer/Installers/DframeInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/wpezpz-tweaks/vendor/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/wpezpz-tweaks/vendor/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wpezpz-tweaks/vendor/micropackage/requirements/src/Checker/PHPExtensions.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'EZPZ_TWEAKS\\Engine\\cmb2\\Abstract_Custom_CMB2_Type' not found in wp-content/plugins/wpezpz-tweaks/engine/cmb2/Type_Select2.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: branding, optimization, customization, performance, admin menu editor...

wpezpz-tweaks/wp-ezpz-tweaks.php 85% from 13 tests

"WP EzPz Tweaks" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpezpz-tweaks.php" instead of "wp-ezpz-tweaks.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin63,764 lines of code in 418 files:
LanguageFilesBlank linesComment linesLines of code
PO File12314,52218,75632,851
PHP2274,1329,48716,599
CSS153281,1994,974
JSON9004,925
JavaScript104166251,724
Sass17306291,411
Markdown93510979
YAML3313123
Bourne Shell12111120
XML24356
SVG2002

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 153)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity12.31
▷ Minimum class complexity1.00
▷ Maximum class complexity286.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity153.00
Code structure
Namespaces23
Interfaces1
Traits0
Classes220
▷ Abstract classes125.45%
▷ Concrete classes20894.55%
▷ Final classes00.00%
Methods1,005
▷ Static methods14214.13%
▷ Public methods85384.88%
▷ Protected methods12412.34%
▷ Private methods282.79%
Functions84
▷ Named functions5160.71%
▷ Anonymous functions3339.29%
Constants32
▷ Global constants2268.75%
▷ Class constants1031.25%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
assets/img/EzPzTweaks-icon.png1.42KB1.27KB▼ 10.48%
vendor/cmb2/images/ico-delete.png0.70KB0.72KB0.00%