83% catch-web-tools

Code Review | Catch Web Tools

WordPress plugin Catch Web Tools scored83%from 54 tests.

About plugin

  • Plugin page: catch-web-tools
  • Plugin version: 2.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Nov 15, 2023
  • Number of updates: 73
  • Update frequency: every 50.2 days
  • Top authors: catchthemes (94.52%)pratikshrestha (6.85%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20,000+ active /455,134 total downloads

Benchmarks

Plugin footprint 83% 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.50MB] [CPU: ▲3.51ms] Passed 4 tests

This is a short check of server-side resources used by Catch Web Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5242.57 ▲3.04
Dashboard /wp-admin3.84 ▲0.5449.85 ▲0.59
Posts /wp-admin/edit.php3.90 ▲0.5353.62 ▲6.74
Add New Post /wp-admin/post-new.php6.36 ▲0.47100.73 ▲4.51
Media Library /wp-admin/upload.php3.70 ▲0.4741.52 ▲5.91
Webmasters /wp-admin/admin.php?page=catch-web-tools-webmasters3.7543.20
Open Graph /wp-admin/admin.php?page=catch-web-tools-opengraph3.7547.61
To Top /wp-admin/admin.php?page=catch-web-tools-to-top3.7840.83
SEO /wp-admin/admin.php?page=catch-web-tools-seo3.7241.77
Dashboard /wp-admin/admin.php?page=catch-web-tools3.8044.43
Catch IDs /wp-admin/admin.php?page=catch-web-tools-catch-ids3.7341.26
Social Icons /wp-admin/admin.php?page=catch-web-tools-social-icons3.7440.78

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Catch Web Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8114.22 ▼0.101.68 ▲0.0141.76 ▼5.13
Dashboard /wp-admin2,247 ▲675.58 ▼0.0588.04 ▼4.5483.05 ▲43.32
Posts /wp-admin/edit.php2,152 ▲521.96 ▼0.0638.66 ▲2.5333.25 ▼4.40
Add New Post /wp-admin/post-new.php1,582 ▲5623.28 ▼0.50667.46 ▼23.43169.18 ▲109.22
Media Library /wp-admin/upload.php1,449 ▲464.10 ▼0.10110.67 ▲1.6270.64 ▲22.11
Webmasters /wp-admin/admin.php?page=catch-web-tools-webmasters1,5375.44150.60100.30
Open Graph /wp-admin/admin.php?page=catch-web-tools-opengraph1,6075.41136.1839.32
To Top /wp-admin/admin.php?page=catch-web-tools-to-top1,9666.01112.9833.63
SEO /wp-admin/admin.php?page=catch-web-tools-seo1,4245.3592.3675.52
Dashboard /wp-admin/admin.php?page=catch-web-tools1,7035.59142.3139.05
Catch IDs /wp-admin/admin.php?page=catch-web-tools-catch-ids1,4575.4790.3370.55
Social Icons /wp-admin/admin.php?page=catch-web-tools-social-icons2,1715.97113.2574.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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)
Even though no errors were found, 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 fix the following
  • 28× 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 esc_html_e() in wp-content/plugins/catch-web-tools/admin/modules/header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/catch-web-tools/admin/catch-updater/inc/catch-updater-show-maintenance-message.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-web-tools/admin/modules/header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/catch-web-tools/admin/catch-updater/template/template-maintainance-message.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-web-tools/admin/modules/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/catch-web-tools/admin/modules/main-footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/catch-web-tools/frontend/inc/webmasters-tools.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-web-tools/admin/modules/header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-web-tools/frontend/frontend-functions.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-web-tools/admin/modules/header.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Too many tags (56 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

catch-web-tools/functions.php 77% from 13 tests

This is the main PHP file of "Catch Web Tools" version 2.7.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("catch-web-tools.php" instead of "functions.php")
  • Domain Path: The domain path folder does not exist ("/catch-web-tools/")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 274 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin11,806 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
CSS134281864,683
PHP391,1071,1324,431
SVG2031,189
PO File2382669855
JavaScript1012257648

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity22.18
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods83
▷ Static methods00.00%
▷ Public methods7995.18%
▷ Protected methods00.00%
▷ Private methods44.82%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/arrow-up.png1.35KB0.40KB▼ 70.17%
images/catch-themes.png6.71KB3.18KB▼ 52.66%
to-top/admin/images/default.png5.58KB2.07KB▼ 62.83%
images/catch-themes-themes-option.png0.70KB0.76KB0.00%
admin/images/free-plugin-246x116.png8.01KB3.81KB▼ 52.42%