84% info-cards

Code Review | Info Cards

WordPress plugin Info Cards scored84%from 54 tests.

About plugin

  • Plugin page: info-cards
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Sep 30, 2023
  • Number of updates: 14
  • Update frequency: every 14.7 days
  • Top authors: nftushar (57.14%)charlescormier (28.57%)abuhayat (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,640 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.05MB] [CPU: ▼2.48ms] Passed 4 tests

Server-side resources used by Info Cards
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.02 ▼10.03
Dashboard /wp-admin3.35 ▲0.0548.54 ▼3.79
Posts /wp-admin/edit.php3.40 ▲0.0452.99 ▼0.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.48 ▲6.43
Media Library /wp-admin/upload.php3.27 ▲0.0438.99 ▲4.06

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Info Cards
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.15 ▼0.202.02 ▲0.0444.69 ▼4.71
Dashboard /wp-admin2,195 ▲185.59 ▼0.0894.79 ▼3.9342.84 ▲1.41
Posts /wp-admin/edit.php2,103 ▼01.97 ▲0.0141.26 ▲4.7336.29 ▲0.73
Add New Post /wp-admin/post-new.php6,207 ▲4,67921.49 ▼1.72895.26 ▲170.2790.56 ▲36.23
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0498.93 ▼3.9740.06 ▼5.04

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ICB_VERSION - assumed 'ICB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/info-cards/dist/editor.asset.php on line 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 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:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

info-cards/info-cards.php 92% from 13 tests

This is the main PHP file of "Info Cards" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.1" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin269 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON100236
PHP2101229
CSS2022
JavaScript2022

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin