66% wpematico

Code Review | WPeMatico RSS Feed Fetcher

WordPress plugin WPeMatico RSS Feed Fetcher scored66%from 54 tests.

About plugin

  • Plugin page: wpematico
  • Plugin version: 2.6.21
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2010
  • Latest release: Oct 17, 2023
  • Number of updates: 208
  • Update frequency: every 22.7 days
  • Top authors: etruel (100%)

Code review

54 tests

User reviews

470 reviews

Install metrics

20,000+ active /884,994 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲1.42MB] [CPU: ▲8.91ms] 75% from 4 tests

This is a short check of server-side resources used by WPeMatico RSS Feed Fetcher
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 2,782.59ms on /wp-admin/plugins.php?page=wpemaddons)
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6254.86 ▲19.73
Dashboard /wp-admin5.92 ▲2.6164.74 ▲21.74
Posts /wp-admin/edit.php6.02 ▲2.6670.13 ▲25.58
Add New Post /wp-admin/post-new.php5.75 ▼0.1458.60 ▼30.70
Media Library /wp-admin/upload.php5.81 ▲2.5857.95 ▲24.86
Settings /wp-admin/edit.php?post_type=wpematico&page=wpematico_settings6.45945.34
Add New /wp-admin/post-new.php?post_type=wpematico5.7451.29
WPeMatico Addons /wp-admin/plugins.php?page=wpemaddons8.122,782.59
All Campaigns /wp-admin/edit.php?post_type=wpematico5.9056.05
WPeMatico Privacy /wp-admin/index.php?page=wpematico-privacy5.8452.15
WPeMatico Changelog /wp-admin/index.php?page=wpematico-changelog5.8454.53
Getting started with WPeMatico /wp-admin/index.php?page=wpematico-getting-started5.7848.13
WPeMatico About /wp-admin/index.php?page=wpematico-about5.7849.95

Server storage [IO: ▲14.57MB] [DB: ▲0.10MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for WPeMatico RSS Feed Fetcher
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13614.41 ▼0.271.79 ▲0.2042.25 ▲0.99
Dashboard /wp-admin2,291 ▲1145.59 ▼0.0783.41 ▼14.0170.16 ▲22.78
Posts /wp-admin/edit.php2,152 ▲521.98 ▼0.0239.10 ▼0.5933.39 ▼0.89
Add New Post /wp-admin/post-new.php1,592 ▲6618.25 ▼4.64688.49 ▲21.6351.03 ▼7.90
Media Library /wp-admin/upload.php1,446 ▲524.21 ▼0.0198.18 ▲0.1672.52 ▲29.39
Settings /wp-admin/edit.php?post_type=wpematico&page=wpematico_settings3,8372.6852.95103.50
Add New /wp-admin/post-new.php?post_type=wpematico5,0293.5592.88115.54
WPeMatico Addons /wp-admin/plugins.php?page=wpemaddons1,9002.3636.5859.02
All Campaigns /wp-admin/edit.php?post_type=wpematico1,4242.0335.1934.63
WPeMatico Privacy /wp-admin/index.php?page=wpematico-privacy9222.0023.4745.58
WPeMatico Changelog /wp-admin/index.php?page=wpematico-changelog1,3222.0023.9152.70
Getting started with WPeMatico /wp-admin/index.php?page=wpematico-getting-started1,1021.9923.8448.62
WPeMatico About /wp-admin/index.php?page=wpematico-about1,3151.9923.4361.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • WPeMatico_Options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=wpematico
    • > Notice in wp-content/plugins/wpematico/app/campaign_edit.php+449
    Undefined index: wpematico_nonce

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpematico/app/wpe-cron.php
    • > /wp-content/plugins/wpematico/app/lib/sp_compatibility_test.php
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SimplePie_Cache_DB' not found in wp-content/plugins/wpematico/app/lib/SimplePie/Cache/MySQL.php:56
    • > PHP Warning
      include(): Failed opening 'WPEMATICO_PLUGIN_DIRapp/lib/SimplePie.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wpematico/app/lib/simple_pie_autoloader.php on line 82
    • > PHP Fatal error
      Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/wpematico/app/lib/SimplePie/Cache/DB.php:50
    • > PHP Warning
      include(WPEMATICO_PLUGIN_DIRapp/lib/SimplePie.php): failed to open stream: No such file or directory in wp-content/plugins/wpematico/app/lib/simple_pie_autoloader.php on line 82
    • > PHP Fatal error
      Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/wpematico/app/lib/SimplePie/Cache/Redis.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/wpematico/app/lib/SimplePie/Cache/Memcached.php:58
    • > PHP Fatal error
      Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/wpematico/app/lib/SimplePie/Cache/File.php:50
    • > PHP Fatal error
      Uncaught Error: Class 'SimplePie_Misc' not found in wp-content/plugins/wpematico/app/lib/SimplePie.php:59
    • > PHP Fatal error
      Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/wpematico/app/lib/SimplePie/Cache/Memcache.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpematico/app/smart_notifications.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/plugins.php?page=wpemaddons
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'ajax_nonce')" "TypeError: Cannot read properties of undefined (reading 'ajax_nonce')\n at /wp-content/plugins/wpematico/app/js/wpematico_updates.js?ver=2.6.21:127:34\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wpematico/app/js/wpematico_updates.js?ver=2.6.21:1961:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/plugins.php?page=wpemaddons
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'ajax_nonce')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #1 (SimplePie Requirements Tests.) image not found
You can look at the official readme.txt

wpematico/wpematico.php Passed 13 tests

Analyzing the main PHP file in "WPeMatico RSS Feed Fetcher" version 2.6.21
136 characters long description:
Create posts automatically from RSS/Atom feeds organized into campaigns with multiples filters. If you like it, please rate it 5 stars.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin109,335 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
PO File1525,81631,42675,382
PHP703,4978,36327,508
JavaScript165457493,215
CSS540202,236
Markdown21690994

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 808)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity84.56
▷ Minimum class complexity1.00
▷ Maximum class complexity949.00
Average method complexity7.08
▷ Minimum method complexity1.00
▷ Maximum method complexity808.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes61
▷ Abstract classes11.64%
▷ Concrete classes6098.36%
▷ Final classes00.00%
Methods858
▷ Static methods25930.19%
▷ Public methods80093.24%
▷ Protected methods323.73%
▷ Private methods263.03%
Functions66
▷ Named functions6293.94%
▷ Anonymous functions46.06%
Constants87
▷ Global constants8294.25%
▷ Class constants55.75%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.28MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/robotico_orange-50x50.png0.81KB0.75KB▼ 6.54%
images/previewbutton.png58.53KB24.99KB▼ 57.31%
images/robotico_orange-25x25.png0.83KB1.02KB0.00%
images/yt-campaign.png44.18KB22.09KB▼ 49.99%
images/force_date-post_excerpt.png18.05KB9.03KB▼ 49.94%