73% tevik-minimized

Code Review | Google Speed Optimization by dTevik

WordPress plugin Google Speed Optimization by dTevik scored 73% from 54 tests.

About plugin

  • Plugin page: tevik-minimized
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.0
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: May 2, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tevik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 570 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.82ms] Passed 4 tests

An overview of server-side resources used by Google Speed Optimization by dTevik
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.56 ▼3.68
Dashboard /wp-admin3.41 ▲0.1142.78 ▼8.85
Posts /wp-admin/edit.php3.45 ▲0.0946.83 ▲2.01
Add New Post /wp-admin/post-new.php6.09 ▲0.2082.15 ▼16.74
Media Library /wp-admin/upload.php3.35 ▲0.1233.47 ▲2.13

Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • The plugin illegally modified 2 files (313.33KB) outside of "wp-content/plugins/tevik-minimized/" and "wp-content/uploads/"
    • (new file) wp-content/cache/minified/js-minified.js
    • (new file) wp-content/cache/minified/css-minified.css
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
tevik_minimization_js
widget_theysaidso_widget
db_upgraded
tevik_minimization_css
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Google Speed Optimization by dTevik
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,719 ▼1613.71 ▼0.691.77 ▼0.1337.58 ▼10.80
Dashboard /wp-admin2,212 ▲244.83 ▼1.05113.31 ▼4.7140.35 ▼3.70
Posts /wp-admin/edit.php2,101 ▲122.17 ▲0.1741.12 ▲0.8735.90 ▼1.01
Add New Post /wp-admin/post-new.php1,537 ▲123.23 ▲0.13676.16 ▲7.4866.98 ▲8.53
Media Library /wp-admin/upload.php1,397 ▲154.27 ▼0.08142.58 ▲38.8252.86 ▲6.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • tevik_minimization_js
    • tevik_minimization_css
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/path-converter/src/Converter.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tevik-minimized/tevik_mininmized_main.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/tevik-minimized/minify/vendor/matthiasmullie/minify/src/JS.php:24

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: A description for screenshot #3 is required in tevik-minimized/assets to your readme.txt
The official readme.txt might help

tevik-minimized/tevik_mininmized_main.php 85% from 13 tests

"Google Speed Optimization by dTevik" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tevik-minimized.php" instead of "tevik_mininmized_main.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 658 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/tevik-minimized/minify/vendor/bin/minifycss.bat
      • wp-content/plugins/tevik-minimized/minify/vendor/bin/minifyjs.bat
1,725 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP204061,2361,438
JSON300181
Markdown121038
YAML10031
Bourne Shell261018
Dockerfile12011
DOS Batch2008

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.62
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes12
▷ Abstract classes325.00%
▷ Concrete classes975.00%
▷ Final classes00.00%
Methods73
▷ Static methods34.11%
▷ Public methods3852.05%
▷ Protected methods3446.58%
▷ Private methods11.37%
Functions14
▷ Named functions428.57%
▷ Anonymous functions1071.43%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin