84% catch-ids

Code Review | Catch IDs

WordPress plugin Catch IDs scored84%from 54 tests.

About plugin

  • Plugin page: catch-ids
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 22, 2012
  • Latest release: Nov 15, 2023
  • Number of updates: 66
  • Update frequency: every 63.1 days
  • Top authors: catchthemes (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

30,000+ active /652,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.88ms] Passed 4 tests

Analyzing server-side resources used by Catch IDs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1234.77 ▼3.86
Dashboard /wp-admin3.47 ▲0.1246.59 ▼9.78
Posts /wp-admin/edit.php3.59 ▲0.2351.71 ▲4.95
Add New Post /wp-admin/post-new.php6.05 ▲0.1690.63 ▼1.01
Media Library /wp-admin/upload.php3.40 ▲0.1636.04 ▼0.86

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Catch IDs: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6214.21 ▲0.231.80 ▼0.0038.05 ▼6.03
Dashboard /wp-admin2,217 ▲435.61 ▲0.0493.74 ▼1.5944.12 ▲2.54
Posts /wp-admin/edit.php2,149 ▲491.97 ▼0.1741.53 ▲0.1237.77 ▼2.27
Add New Post /wp-admin/post-new.php1,542 ▲323.45 ▲0.32639.30 ▼21.0050.99 ▼15.23
Media Library /wp-admin/upload.php1,422 ▲194.20 ▲0.0299.99 ▼13.5942.49 ▼1.42

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-ids/partials/catch-ids-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-ids/partials/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/catch-ids/includes/CatchThemesThemePlugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/catch-ids/partials/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/catch-ids/partials/display-dashboard.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
Please take inspiration from this readme.txt

catch-ids/catch-ids.php 92% from 13 tests

Analyzing the main PHP file in "Catch IDs" version 2.7
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 383 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,046 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS2241861,138
PHP7185202828
JavaScript317680

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/free-plugin-246x116.png8.01KB3.81KB▼ 52.42%
images/premium-plugin-246x116.png9.01KB4.16KB▼ 53.83%