84% aggregator-advanced-settings

Code Review | Aggregator Advanced Settings

WordPress plugin Aggregator Advanced Settings scored 84% from 54 tests.

About plugin

  • Plugin page: aggregator-advanc...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.7.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2020
  • Latest release: May 11, 2021
  • Number of updates: 63
  • Update frequency: every 5.1 days
  • Top authors: migumello (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 798 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
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲5.14ms] Passed 4 tests

This is a short check of server-side resources used by Aggregator Advanced Settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1547.31 ▲4.57
Dashboard /wp-admin3.53 ▲0.2259.98 ▲9.19
Posts /wp-admin/edit.php3.64 ▲0.2854.58 ▲3.51
Add New Post /wp-admin/post-new.php6.11 ▲0.2295.41 ▲3.30
Media Library /wp-admin/upload.php3.45 ▲0.2245.76 ▲9.50
Advanced Settings /wp-admin/options-general.php?page=aggregator-options3.4238.41

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_agg_widget_meta
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Aggregator Advanced Settings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲14313.37 ▼1.011.88 ▲0.0530.53 ▼14.06
Dashboard /wp-admin2,251 ▲605.85 ▼0.03101.57 ▼2.2038.38 ▼8.17
Posts /wp-admin/edit.php2,099 ▲102.04 ▲0.0133.88 ▼1.0034.46 ▼0.93
Add New Post /wp-admin/post-new.php1,523 ▲923.34 ▲5.63673.48 ▼23.8652.96 ▼2.75
Media Library /wp-admin/upload.php1,401 ▲164.19 ▲0.0195.92 ▼0.9343.51 ▼3.65
Advanced Settings /wp-admin/options-general.php?page=aggregator-options9522.1524.7147.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_agg_widget_meta
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aggregator-advanced-settings/agg-as-options.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/aggregator-advanced-settings/uninstall.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aggregator-advanced-settings/agg-as-widget-meta.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were detected

aggregator-advanced-settings/agg-advanced-settings.php 85% from 13 tests

"Aggregator Advanced Settings" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aggregator-advanced-settings.php" instead of "agg-advanced-settings.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected1,191 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5144147920
PO File19091215
CSS27945
YAML14411

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity40.33
▷ Minimum class complexity3.00
▷ Maximum class complexity110.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods51
▷ Static methods11.96%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
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