80% meta-optimizer

Code Review | Meta Optimizer

WordPress plugin Meta Optimizer scored80%from 54 tests.

About plugin

  • Plugin page: meta-optimizer
  • Plugin version: 1.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2022
  • Latest release: Sep 12, 2023
  • Number of updates: 9
  • Update frequency: every 39.7 days
  • Top authors: parselearn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /957 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▲3.02ms] Passed 4 tests

A check of server-side resources used by Meta Optimizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1345.19 ▲7.56
Dashboard /wp-admin3.46 ▲0.1649.20 ▲1.27
Posts /wp-admin/edit.php3.51 ▲0.1650.99 ▲6.81
Add New Post /wp-admin/post-new.php6.00 ▲0.1286.17 ▼3.58
Media Library /wp-admin/upload.php3.32 ▲0.0942.51 ▲9.27
Meta Optimizer /wp-admin/tools.php?page=wp-meta-optimizer3.2971.11

Server storage [IO: ▲0.20MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: 4 new tables, 6 new options
New tables
wp_termmeta_wpmo
wp_postmeta_wpmo
wp_commentmeta_wpmo
wp_usermeta_wpmo
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Meta Optimizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4013.22 ▼1.161.57 ▼0.2341.54 ▲3.50
Dashboard /wp-admin2,217 ▲295.87 ▲0.99109.46 ▲0.6136.99 ▼7.76
Posts /wp-admin/edit.php2,100 ▲82.02 ▲0.0140.56 ▲5.2634.48 ▼0.13
Add New Post /wp-admin/post-new.php1,528 ▲1423.38 ▲5.75675.83 ▲74.5161.40 ▲12.26
Media Library /wp-admin/upload.php1,399 ▲114.23 ▲0.03109.55 ▲12.3645.92 ▲3.33
Meta Optimizer /wp-admin/tools.php?page=wp-meta-optimizer2,1181.8428.0039.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 4 tables in the database
    • wp_postmeta_wpmo
    • wp_usermeta_wpmo
    • wp_commentmeta_wpmo
    • wp_termmeta_wpmo
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: term meta, meta, post meta, comment meta, optimizer...

meta-optimizer/WPMetaOptimizer.php 92% from 13 tests

"Meta Optimizer" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("meta-optimizer.php" instead of "WPMetaOptimizer.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
Everything looks great! No dangerous files found in this plugin3,376 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP177321,4353,219
JavaScript1241156
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity41.94
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity5.70
▷ Minimum method complexity1.00
▷ Maximum method complexity88.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods140
▷ Static methods2820.00%
▷ Public methods12690.00%
▷ Protected methods96.43%
▷ Private methods53.57%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants7
▷ Global constants7100.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