83% centedi-catalog-addon

Code Review | CentEDI Catalog Extension

WordPress plugin CentEDI Catalog Extension scored83%from 54 tests.

About plugin

  • Plugin page: centedi-catalog-a...
  • Plugin version: 0.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2020
  • Latest release: Feb 28, 2022
  • Number of updates: 21
  • Update frequency: every 33.8 days
  • Top authors: sergemadi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,336 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 gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.18ms] Passed 4 tests

A check of server-side resources used by CentEDI Catalog Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2941.13 ▼0.23
Dashboard /wp-admin3.59 ▲0.2945.77 ▼2.93
Posts /wp-admin/edit.php3.71 ▲0.3547.48 ▼3.35
Add New Post /wp-admin/post-new.php6.17 ▲0.2992.10 ▼5.82
Media Library /wp-admin/upload.php3.52 ▲0.2936.27 ▼0.60

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CentEDI Catalog Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.211.67 ▼0.1640.45 ▲1.09
Dashboard /wp-admin2,203 ▲185.99 ▲0.0996.47 ▼2.1738.43 ▼9.11
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0339.95 ▲3.6137.82 ▼1.93
Add New Post /wp-admin/post-new.php1,547 ▲1323.10 ▼0.09619.93 ▼51.8351.78 ▼5.79
Media Library /wp-admin/upload.php1,382 ▼64.17 ▲0.0696.66 ▼9.7040.22 ▼6.83

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
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 13
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 14
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 9
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 12
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'CentediUtils' not found in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-register.php:5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/centedi-catalog-addon/centedi-cataddon-config.php on line 10

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 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: filters, import, woocommerce, brands, centedi...

centedi-catalog-addon/centedi-cataddon-main.php 77% from 13 tests

"CentEDI Catalog Extension" version 0.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 225 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("centedi-catalog-addon.php" instead of "centedi-cataddon-main.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin4,612 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP112693354,082
PO File2162190385
XSLT180132
SVG10011
CSS1001
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity65.89
▷ Minimum class complexity4.00
▷ Maximum class complexity246.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods192
▷ Static methods00.00%
▷ Public methods16988.02%
▷ Protected methods00.00%
▷ Private methods2311.98%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/controls.png2.74KB1.42KB▼ 48.29%