78% cartograf-featured-image-in-feed

Code Review | Cartograf Featured-image in Feed

WordPress plugin Cartograf Featured-image in Feed scored 78% from 54 tests.

About plugin

  • Plugin page: cartograf-feature...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 5.8.1
  • First release: May 28, 2014
  • Latest release: Sep 8, 2014
  • Number of updates: 8
  • Update frequency: every 12.9 days
  • Top authors: versvs (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 1,657 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.02MB] [CPU: ▼148.16ms] Passed 4 tests

Analyzing server-side resources used by Cartograf Featured-image in Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0242.44 ▼10.61
Dashboard /wp-admin3.08 ▲0.0355.11 ▼16.58
Posts /wp-admin/edit.php3.13 ▲0.0252.77 ▼0.24
Add New Post /wp-admin/post-new.php5.44 ▲0.0097.55 ▼561.04
Media Library /wp-admin/upload.php3.02 ▲0.0238.79 ▼4.40
Cartograf Featured-image in Feed Settings /wp-admin/options-general.php?page=cg_featured_image_feed2.9929.54

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
cg_fi_backlink_active

Browser metrics Passed 4 tests

A check of browser resources used by Cartograf Featured-image in Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲11215.86 ▲0.5317.53 ▲2.7251.02 ▼8.03
Dashboard /wp-admin2,972 ▲385.91 ▼0.01165.66 ▼6.37119.90 ▼20.53
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0183.25 ▲9.6797.83 ▼2.94
Add New Post /wp-admin/post-new.php1,607 ▲2618.86 ▼0.08429.55 ▲17.37113.26 ▼2.34
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.01187.50 ▲16.53129.22 ▲2.35
Cartograf Featured-image in Feed Settings /wp-admin/options-general.php?page=cg_featured_image_feed1,0772.0658.8896.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • cg_fi_backlink_active

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartograf-featured-image-in-feed/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartograf-featured-image-in-feed/settings.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=cg_featured_image_feed
    • > Network (severe)
    wp-content/plugins/cartograf-cookie-filter/logo-cartograf.png - Failed to load resource: the server responded with a status of 404 (Not 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 to be fixed:
  • Screenshots: Screenshot #1 (Soon to be available screenshot.) image not found
Please take inspiration from this readme.txt

cartograf-featured-image-in-feed/cartograf-featured-image-feed.php 92% from 13 tests

The entry point to "Cartograf Featured-image in Feed" version 1.1.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("cartograf-featured-image-in-feed.php" instead of "cartograf-featured-image-feed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected98 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2221398

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo-cartograf.png20.28KB8.26KB▼ 59.28%