68% my-wp-fast

Code Review | My WP Fast

WordPress plugin My WP Fast scored68%from 54 tests.

About plugin

  • Plugin page: my-wp-fast
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2019
  • Latest release: Jun 27, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: carlosbranco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /596 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼0.37ms] Passed 4 tests

A check of server-side resources used by My WP Fast
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2850.09 ▲12.86
Dashboard /wp-admin3.57 ▲0.2257.14 ▼6.00
Posts /wp-admin/edit.php3.62 ▲0.2651.84 ▲6.75
Add New Post /wp-admin/post-new.php6.09 ▲0.2092.04 ▼10.73
Media Library /wp-admin/upload.php3.43 ▲0.2042.43 ▲8.52

Server storage [IO: ▲0.44MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: 1 new table, 6 new options
New tables
make_faster
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by My WP Fast
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.34 ▼0.011.87 ▲0.1642.29 ▼0.34
Dashboard /wp-admin2,207 ▲275.62 ▼0.0595.95 ▲7.1144.00 ▲3.65
Posts /wp-admin/edit.php2,112 ▲332.02 ▼0.0137.26 ▲1.4533.49 ▼5.79
Add New Post /wp-admin/post-new.php1,536 ▲1023.73 ▲0.30615.78 ▲21.5759.47 ▲0.29
Media Library /wp-admin/upload.php1,412 ▲124.25 ▲0.07103.74 ▲0.4042.19 ▼8.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • make_faster
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/my-wp-fast/index.php
    • > /wp-content/plugins/my-wp-fast/templates/config.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/minify/src/Exceptions/FileImportException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/minify/src/CSS.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/minify/src/JS.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/minify/src/Exceptions/BasicException.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/my-wp-fast/vendor/matthiasmullie/path-converter/src/Converter.php:19

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in my-wp-fast/assets to your readme.txt
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

my-wp-fast/index.php 92% from 13 tests

Analyzing the main PHP file in "My WP Fast" version 1.0.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-wp-fast.php" instead of "index.php")

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
No dangerous file extensions were detected3,023 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP214601,2252,173
JavaScript3114258386
CSS210198
JSON400186
Markdown121038
YAML10031
Dockerfile12011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.14
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes13
▷ Abstract classes323.08%
▷ Concrete classes1076.92%
▷ Final classes00.00%
Methods105
▷ Static methods32.86%
▷ Public methods6763.81%
▷ Protected methods3735.24%
▷ Private methods10.95%
Functions31
▷ Named functions1032.26%
▷ Anonymous functions2167.74%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.25MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/clear.png39.59KB16.80KB▼ 57.56%
assets/space.png61.23KB25.81KB▼ 57.85%
assets/loading.png56.63KB23.07KB▼ 59.26%
assets/files.png97.04KB41.07KB▼ 57.67%