84% render-faster

Code Review | Render Faster

WordPress plugin Render Faster scored84%from 54 tests.

About plugin

  • Plugin page: render-faster
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 29, 2021
  • Latest release: Aug 2, 2021
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Render Faster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4047.82 ▲6.73
Dashboard /wp-admin3.40 ▲0.0551.46 ▼16.72
Posts /wp-admin/edit.php3.51 ▲0.1553.06 ▲6.32
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.85 ▼17.11
Media Library /wp-admin/upload.php3.32 ▲0.0937.68 ▲5.77
Rendering Optimization /wp-admin/themes.php?page=render-faster3.2935.91

Server storage [IO: ▲0.07MB] [DB: ▲0.04MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Render Faster
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10513.60 ▼0.961.95 ▲0.1938.48 ▼7.19
Dashboard /wp-admin2,228 ▲254.88 ▼1.02101.63 ▼6.4339.69 ▼8.72
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0235.23 ▼2.9936.91 ▼2.98
Add New Post /wp-admin/post-new.php1,548 ▲2223.39 ▲5.83717.07 ▲49.0157.43 ▼1.60
Media Library /wp-admin/upload.php1,401 ▲14.32 ▲0.0896.49 ▼9.7343.10 ▼0.53
Rendering Optimization /wp-admin/themes.php?page=render-faster1,0291.7127.0737.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Singleton' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Pattern/Service.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Service' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Services/LazyLoader.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Singleton' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Ui/Settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Service' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Services/ThirdParties.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Singleton' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Bootstrap.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Service' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Services/StyleLoader.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\RenderFaster\\Pattern\\Service' not found in wp-content/plugins/render-faster/src/Tarosky/RenderFaster/Services/ScriptLoader.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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: speed, theme, optimization

render-faster/render-faster.php 92% from 13 tests

The principal PHP file in "Render Faster" v. 1.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,356 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP192025581,180
JSON30090
JavaScript2121286

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.17
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods78
▷ Static methods1924.36%
▷ Public methods6785.90%
▷ Protected methods911.54%
▷ Private methods22.56%
Functions21
▷ Named functions29.52%
▷ Anonymous functions1990.48%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin