84% catalogo

Code Review | CataloGO

WordPress plugin CataloGO scored84%from 54 tests.

About plugin

  • Plugin page: catalogo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.4
  • WordPress version: 6.3.1
  • First release: Apr 21, 2017
  • Latest release: Apr 21, 2017
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: hechizo2000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,238 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.70ms] Passed 4 tests

A check of server-side resources used by CataloGO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.15 ▼5.66
Dashboard /wp-admin3.33 ▲0.0246.52 ▼3.79
Posts /wp-admin/edit.php3.38 ▲0.0251.58 ▲1.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.11 ▼18.08
Media Library /wp-admin/upload.php3.25 ▲0.0239.02 ▼15.28

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: 5 new tables, 6 new options
New tables
wp_catalogoplugin_catalog
wp_catalogoplugin_type_columns
wp_catalogoplugin_column
wp_catalogoplugin_type
wp_catalogoplugin_column_definition
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by CataloGO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.70 ▼0.921.57 ▼0.4737.98 ▼5.34
Dashboard /wp-admin2,219 ▲315.82 ▲0.95108.88 ▲3.7538.29 ▼6.42
Posts /wp-admin/edit.php2,105 ▲161.97 ▼0.0640.77 ▲6.8835.07 ▲1.36
Add New Post /wp-admin/post-new.php1,527 ▲717.41 ▼5.50643.40 ▼9.1659.55 ▲9.04
Media Library /wp-admin/upload.php1,404 ▲164.17 ▼0.0993.18 ▼25.1041.33 ▼7.79

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/catalogo/catalogo_config.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/catalogo/catalogo.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: catalogs, catalog, catalogo

catalogo/catalogo.php Passed 13 tests

"CataloGO" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
Plugin for create, manage and publish catalogs

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 detected3,215 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP4282901,467
JavaScript5586731,187
CSS340175561

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods120
▷ Static methods00.00%
▷ Public methods120100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
12 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/message-error.png0.26KB0.10KB▼ 60.00%
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
css/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
css/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%