90% better-website-performance

Code Review | Better Website Performance

WordPress plugin Better Website Performance scored90%from 54 tests.

About plugin

  • Plugin page: better-website-pe...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2023
  • Latest release: Nov 16, 2023
  • Number of updates: 5
  • Update frequency: every 33.4 days
  • Top authors: thingsym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /345 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼0.16ms] Passed 4 tests

This is a short check of server-side resources used by Better Website Performance
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3640.57 ▼0.98
Dashboard /wp-admin3.66 ▲0.3648.71 ▲1.57
Posts /wp-admin/edit.php3.71 ▲0.3553.87 ▲6.84
Add New Post /wp-admin/post-new.php6.18 ▲0.2993.26 ▼8.07
Media Library /wp-admin/upload.php3.52 ▲0.2940.93 ▲8.35

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Better Website Performance
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5814.19 ▼0.161.82 ▲0.1642.20 ▼3.67
Dashboard /wp-admin2,198 ▲215.67 ▲0.0996.28 ▲0.6137.82 ▼2.02
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0339.48 ▼0.1435.66 ▼0.13
Add New Post /wp-admin/post-new.php1,530 ▲422.99 ▼0.35685.67 ▼20.3954.94 ▼14.33
Media Library /wp-admin/upload.php1,391 ▼124.21 ▲0.0198.63 ▲0.1442.54 ▼0.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
1 plugin tags: performance

better-website-performance/better-website-performance.php Passed 13 tests

The primary PHP file in "Better Website Performance" version 1.1.1 is used by WordPress to initiate all plugin functionality
92 characters long description:
The Better Website Performance plugin adds advanced features to improve website performance.

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 detected1,569 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP143541,1061,464
PO File14349105

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.33
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods71
▷ Static methods1723.94%
▷ Public methods71100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin