83% wpo-tweaks

Code Review | WordPress WPO Tweaks & Optimizations

WordPress plugin WordPress WPO Tweaks & Optimizations scored83%from 54 tests.

About plugin

  • Plugin page: wpo-tweaks
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Oct 17, 2017
  • Latest release: Nov 6, 2023
  • Number of updates: 47
  • Update frequency: every 47.0 days
  • Top authors: fernandot (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

5,000+ active /120,506 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.40ms] Passed 4 tests

Analyzing server-side resources used by WordPress WPO Tweaks & Optimizations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.95 ▼1.67
Dashboard /wp-admin3.34 ▼0.0145.34 ▼15.97
Posts /wp-admin/edit.php3.39 ▲0.0343.46 ▼2.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.44 ▼21.72
Media Library /wp-admin/upload.php3.26 ▲0.0435.89 ▲1.77

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

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • The plugin illegally modified 1 file (2.03KB) outside of "wp-content/plugins/wpo-tweaks/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WordPress WPO Tweaks & Optimizations: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲2314.27 ▼0.011.78 ▼0.1542.61 ▲0.32
Dashboard /wp-admin2,195 ▲155.56 ▼0.0885.17 ▼4.9233.91 ▼6.78
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0838.06 ▲0.9331.60 ▼3.81
Add New Post /wp-admin/post-new.php1,526 ▼022.85 ▼0.34585.94 ▼115.3346.99 ▼4.49
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.00100.54 ▼1.9939.99 ▼4.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpo-tweaks/wordpress-wpo-tweaks.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt is a good inspiration

wpo-tweaks/wordpress-wpo-tweaks.php 85% from 13 tests

The main PHP script in "WordPress WPO Tweaks & Optimizations" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wpo-tweaks.php" instead of "wordpress-wpo-tweaks.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
There were no executable files found in this plugin121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11557121

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin