78% optimize-more

Code Review | Optimize More!

WordPress plugin Optimize More! scored78%from 54 tests.

About plugin

  • Plugin page: optimize-more
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Jun 28, 2023
  • Number of updates: 24
  • Update frequency: every 12.2 days
  • Top authors: aryadhiratara (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼15.28ms] Passed 4 tests

Server-side resources used by Optimize More!
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.58 ▲0.13
Dashboard /wp-admin3.53 ▲0.2247.32 ▲0.36
Posts /wp-admin/edit.php3.58 ▲0.2247.65 ▼5.56
Add New Post /wp-admin/post-new.php6.05 ▲0.1485.39 ▼56.05
Media Library /wp-admin/upload.php3.39 ▲0.1637.62 ▲4.09

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Optimize More!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.61 ▼0.792.05 ▲0.3445.29 ▲2.14
Dashboard /wp-admin2,238 ▲504.88 ▼0.02103.59 ▼11.0135.61 ▼9.35
Posts /wp-admin/edit.php2,125 ▲362.06 ▲0.0139.17 ▼4.2434.16 ▼1.04
Add New Post /wp-admin/post-new.php1,546 ▲1323.12 ▲0.08683.67 ▲59.6968.55 ▲15.86
Media Library /wp-admin/upload.php1,420 ▲324.21 ▼0.0895.05 ▼1.7839.61 ▼3.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 12× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/optimize-more/includes/Functions.php
    • > /wp-content/plugins/optimize-more/assets/js/index.php
    • > /wp-content/plugins/optimize-more/includes/index.php
    • > /wp-content/plugins/optimize-more/view/index.php
    • > /wp-content/plugins/optimize-more/includes/library/index.php
    • > /wp-content/plugins/optimize-more/assets/index.php
    • > /wp-content/plugins/optimize-more/view/admin/parts/sidebar.php
    • > /wp-content/plugins/optimize-more/assets/css/index.php
    • > /wp-content/plugins/optimize-more/view/admin/index.php
    • > /wp-content/plugins/optimize-more/view/admin/parts/index.php
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/delay/delay-css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/optimize-more/view/admin/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/partials/extra/custom-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/async.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/remove/remove-js.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/async/advanced-defer-js.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/remove.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/optimize-more/view/admin/parts/partials/async/defer-js.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/import.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/optimize-more/view/admin/parts/preload.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

optimize-more/optimize-more.php 85% from 13 tests

The main PHP script in "Optimize More!" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,812 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP461,4345726,066
CSS11137627
JavaScript320119

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity45.17
▷ Minimum class complexity4.00
▷ Maximum class complexity249.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods166
▷ Static methods42.41%
▷ Public methods14889.16%
▷ Protected methods159.04%
▷ Private methods31.81%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants38
▷ Global constants3694.74%
▷ Class constants25.26%
▷ Public constants2100.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
No PNG images were found in this plugin