84% acymailing-rss-content

Code Review | RSS integration - AcyMailing

WordPress plugin RSS integration - AcyMailing scored84%from 54 tests.

About plugin

  • Plugin page: acymailing-rss-co...
  • Plugin version: 2.8
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2020
  • Latest release: Aug 17, 2023
  • Number of updates: 22
  • Update frequency: every 49.7 days
  • Top authors: acyba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.10ms] Passed 4 tests

An overview of server-side resources used by RSS integration - AcyMailing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.87 ▼4.64
Dashboard /wp-admin3.31 ▲0.0151.88 ▼0.01
Posts /wp-admin/edit.php3.36 ▲0.0056.61 ▲3.08
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.94 ▲12.44
Media Library /wp-admin/upload.php3.23 ▲0.0037.69 ▲1.18

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

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

Browser metrics Passed 4 tests

RSS integration - AcyMailing: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.212.06 ▲0.1445.59 ▲0.14
Dashboard /wp-admin2,192 ▲185.51 ▲0.0089.66 ▼6.9037.02 ▼6.83
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0138.83 ▲2.9137.24 ▲2.21
Add New Post /wp-admin/post-new.php1,526 ▼023.66 ▲0.07650.70 ▼71.0556.89 ▼20.42
Media Library /wp-admin/upload.php1,397 ▼34.07 ▼0.16103.33 ▼7.7545.15 ▼1.94

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/acymailing-rss-content/acymailing-rss.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AcyMailing\\Libraries\\acymPlugin' not found in wp-content/plugins/acymailing-rss-content/plugin.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: acymailing, rss feed, newsletter, integration, rss

acymailing-rss-content/acymailing-rss.php 92% from 13 tests

"RSS integration - AcyMailing" version 2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acymailing-rss-content.php" instead of "acymailing-rss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin354 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26511350
SVG1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity75.00
▷ Minimum class complexity75.00
▷ Maximum class complexity75.00
Average method complexity10.25
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
banner.png15.14KB3.79KB▼ 74.93%