84% performance-tweaks

Code Review | Performance Tweaks

WordPress plugin Performance Tweaks scored84%from 54 tests.

About plugin

  • Plugin page: performance-tweaks
  • Plugin version: 0.6.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 11
  • Update frequency: every 10.1 days
  • Top authors: rhoekman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /661 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.08MB] [CPU: ▼0.61ms] Passed 4 tests

An overview of server-side resources used by Performance Tweaks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0744.81 ▼0.81
Dashboard /wp-admin3.44 ▲0.0963.14 ▲7.23
Posts /wp-admin/edit.php3.55 ▲0.1552.53 ▲2.46
Add New Post /wp-admin/post-new.php6.02 ▲0.09101.17 ▼4.27
Media Library /wp-admin/upload.php3.36 ▲0.0936.34 ▲0.20
Performance Tweaks /wp-admin/options-general.php?page=perf-tweaks-settings-page3.3334.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Performance Tweaks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.08 ▼0.201.66 ▼0.6845.91 ▲3.17
Dashboard /wp-admin2,199 ▲255.53 ▲0.0087.65 ▼14.0039.82 ▼4.28
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0732.52 ▼3.6136.16 ▼2.26
Add New Post /wp-admin/post-new.php1,538 ▲1217.96 ▼5.26616.93 ▼122.1978.45 ▲9.03
Media Library /wp-admin/upload.php1,401 ▲44.26 ▲0.00100.05 ▼5.1743.32 ▼1.93
Performance Tweaks /wp-admin/options-general.php?page=perf-tweaks-settings-page8672.1323.7728.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/performance-tweaks/rh-performance.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: speed, javascript, defer, performance, pagespeed...

performance-tweaks/rh-performance.php 92% from 13 tests

The main PHP script in "Performance Tweaks" version 0.6.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("performance-tweaks.php" instead of "rh-performance.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin210 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28251210

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin