71% wptools

Code Review | = WP Tools Increase Maximum Limits, Repair, Server PHP Info, Javascript errors, File Permissions, Transients, Error Log

WordPress plugin = WP Tools Increase Maximum Limits, Repair, Server PHP Info, Javascript errors, File Permissions, Transients, Error Log scored71%from 54 tests.

About plugin

  • Plugin page: wptools
  • Plugin version: 4.12
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Feb 22, 2020
  • Latest release: Nov 30, 2023
  • Number of updates: 720
  • Update frequency: every 1.9 days
  • Top authors: sminozzi (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active /109,907 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: ▲1.11MB] [CPU: ▲481.79ms] 50% from 4 tests

Analyzing server-side resources used by = WP Tools Increase Maximum Limits, Repair, Server PHP Info, Javascript errors, File Permissions, Transients, Error Log
Please fix the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 731.26ms on /wp-admin/admin.php?page=wptools_options21)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 481.79ms on /wp-admin/admin.php?page=wptools_options21)
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7657.03 ▲13.25
Dashboard /wp-admin4.53 ▲1.23705.32 ▲650.82
Posts /wp-admin/edit.php4.57 ▲1.22756.93 ▲709.02
Add New Post /wp-admin/post-new.php7.13 ▲1.25749.64 ▲648.11
Media Library /wp-admin/upload.php4.46 ▲1.23650.37 ▲614.97
Show .htaccess /wp-admin/admin.php?page=wptools_options254.41679.47
Javascrip and jQuery /wp-admin/admin.php?page=wptools_options354.41693.14
Show Cron Jobs /wp-admin/admin.php?page=wptools_options274.41746.11
Go Pro /wp-admin/admin.php?page=wptools_my-custom-submenu-page94.41737.06
Show wp-config.php /wp-admin/admin.php?page=wptools_options264.41634.80
Show Cookies /wp-admin/admin.php?page=wptools_options284.41734.94
More New Tools /wp-admin/admin.php?page=wptools_options394.42761.83
Show Transients /wp-admin/admin.php?page=wptools_options336.35733.09
Edit robots txt /wp-admin/admin.php?page=wptools_options244.41737.19
Show Errors /wp-admin/admin.php?page=wptools_options214.41731.26

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 101 new files
Database: no new tables, 11 new options
New WordPress options
wptools_activated_pointer
wptools_activated_notice
theysaidso_admin_options
widget_theysaidso_widget
wptools_was_activated
widget_recent-posts
bill_go_pro_hide
can_compress_scripts
bill_last_feedback
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for = WP Tools Increase Maximum Limits, Repair, Server PHP Info, Javascript errors, File Permissions, Transients, Error Log
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲17314.35 ▲0.092.00 ▲0.2744.10 ▼1.77
Dashboard /wp-admin2,313 ▲1395.48 ▼0.17101.06 ▲8.4180.82 ▲39.65
Posts /wp-admin/edit.php2,236 ▲1362.61 ▲0.6141.54 ▼1.9231.98 ▼4.00
Add New Post /wp-admin/post-new.php1,630 ▲10423.34 ▲0.12620.77 ▼6.4733.01 ▼14.02
Media Library /wp-admin/upload.php1,552 ▲1524.68 ▲0.43102.70 ▼5.4779.72 ▲33.31
Show .htaccess /wp-admin/admin.php?page=wptools_options259742.1030.9923.36
Javascrip and jQuery /wp-admin/admin.php?page=wptools_options351,0102.1135.1131.06
Show Cron Jobs /wp-admin/admin.php?page=wptools_options271,0812.2631.0332.54
Go Pro /wp-admin/admin.php?page=wptools_my-custom-submenu-page91,0934.53111.6128.71
Show wp-config.php /wp-admin/admin.php?page=wptools_options269712.1829.2124.17
Show Cookies /wp-admin/admin.php?page=wptools_options281,0222.1134.1430.58
More New Tools /wp-admin/admin.php?page=wptools_options391,1141.9235.0934.22
Show Transients /wp-admin/admin.php?page=wptools_options331,2112.1833.4129.55
Edit robots txt /wp-admin/admin.php?page=wptools_options249762.1029.7126.23
Show Errors /wp-admin/admin.php?page=wptools_options219662.1030.6826.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 11 options
    • wptools_was_activated
    • can_compress_scripts
    • bill_go_pro_hide
    • wptools_activated_pointer
    • widget_recent-comments
    • theysaidso_admin_options
    • bill_last_feedback
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wptools_options35
    • > Warning in wp-content/plugins/wptools/functions/functions.php+2222
    fopen(error_log): failed to open stream: No such file or directory

SRP 0% 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
Almost there! Just fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/wptools/wptools.php
    • > /wp-content/plugins/wptools/dashboard/gauge.php
    • > /wp-content/plugins/wptools/dashboard/requirements.php
    • > /wp-content/plugins/wptools/functions/bill-catch-errors.php
    • > /wp-content/plugins/wptools/dashboard/dashboard_container.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptools/functions/functions_transiente_manager.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wptools/dashboard/circle_memory.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wptoolsPlugin_activate\\is_multisite() in wp-content/plugins/wptools/includes/feedback/activated-manager.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bill_banners\\get_transient() in wp-content/plugins/wptools/dashboard/mybanners.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wptools/dashboard/circle_disc.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptools/functions/functions_cron_manager.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'wptoolsWPSettings\\Page' not found in wp-content/plugins/wptools/settings/options/plugin_options_tabbed.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard Charts), #2 (Dashboard Info), #3 (Server Errors), #4 (More a Lot of Info and Tools)
Please take inspiration from this readme.txt

wptools/wptools.php 92% from 13 tests

The primary PHP file in "= WP Tools Increase Maximum Limits, Repair, Server PHP Info, Javascript errors, File Permissions, Transients, Error Log" version 4.12 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)

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
Success! There were no dangerous files found in this plugin20,585 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP331,0941,0409,518
PO File52,43511,6577,343
JavaScript175497652,462
CSS102911101,262

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.85
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods70
▷ Static methods45.71%
▷ Public methods70100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions162
▷ Named functions15998.15%
▷ Anonymous functions31.85%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.95MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/runningx30x35.png2.48KB1.80KB▼ 27.36%
screenshot-4.png230.45KB74.51KB▼ 67.67%
images/logo.png3.78KB2.68KB▼ 28.94%
screenshot-2.png194.11KB60.98KB▼ 68.58%
images/tools.png6.25KB0.63KB▼ 89.97%