78% cartograf-featured-image-in-feed

Code Review | Cartograf Featured-image in Feed

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

About plugin

  • Plugin page: cartograf-feature...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.0
  • WordPress version: 6.3.1
  • First release: May 28, 2014
  • Latest release: Apr 15, 2023
  • Number of updates: 9
  • Update frequency: every 360.4 days
  • Top authors: versvs (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,001 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.01MB] [CPU: ▼10.80ms] 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 /3.48 ▲0.0239.27 ▲3.33
Dashboard /wp-admin3.33 ▼0.0247.52 ▼12.13
Posts /wp-admin/edit.php3.38 ▲0.0242.79 ▼2.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.08 ▼24.87
Media Library /wp-admin/upload.php3.25 ▲0.0234.70 ▼3.72
Cartograf Featured-image in Feed Settings /wp-admin/options-general.php?page=cg_featured_image_feed3.2230.79

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, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
cg_fi_backlink_active
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

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 /2,818 ▲4714.54 ▲0.191.91 ▲0.0343.92 ▲3.62
Dashboard /wp-admin2,196 ▲165.63 ▼0.0496.83 ▲12.0242.39 ▼1.78
Posts /wp-admin/edit.php2,101 ▲12.02 ▼0.0133.42 ▼1.8131.94 ▼5.51
Add New Post /wp-admin/post-new.php1,531 ▲323.32 ▲0.38681.81 ▲32.3057.09 ▲0.65
Media Library /wp-admin/upload.php1,398 ▼54.23 ▲0.0394.73 ▼2.9445.63 ▲2.74
Cartograf Featured-image in Feed Settings /wp-admin/options-general.php?page=cg_featured_image_feed8122.1825.6722.42

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 7 options in the database
    • cg_fi_backlink_active
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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.2.1 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%