90% aggregator

Code Review | Aggregator

WordPress plugin Aggregator scored90%from 54 tests.

About plugin

  • Plugin page: aggregator
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 6.3.1
  • First release: Jun 5, 2015
  • Latest release: Dec 4, 2019
  • Number of updates: 37
  • Update frequency: every 44.4 days
  • Top authors: EdwardBock (94.59%)greatestview (8.11%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,052 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.55ms] Passed 4 tests

Analyzing server-side resources used by Aggregator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1348.19 ▲9.76
Dashboard /wp-admin3.37 ▲0.0645.16 ▼3.54
Posts /wp-admin/edit.php3.40 ▲0.0448.36 ▲2.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.95 ▼10.89
Media Library /wp-admin/upload.php3.30 ▲0.0735.79 ▼2.17
Aggregator /wp-admin/options-general.php?page=aggregator3.2331.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aggregator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.32 ▼1.045.11 ▲3.4036.38 ▼5.12
Dashboard /wp-admin2,250 ▲624.87 ▼0.04108.49 ▲6.6139.57 ▼3.58
Posts /wp-admin/edit.php2,106 ▲172.05 ▲0.0539.44 ▲1.5635.26 ▲5.16
Add New Post /wp-admin/post-new.php1,548 ▲2623.09 ▼0.41624.39 ▲35.0149.71 ▼8.91
Media Library /wp-admin/upload.php1,423 ▲354.16 ▼0.0598.56 ▼6.8843.71 ▲0.42
Aggregator /wp-admin/options-general.php?page=aggregator9192.1825.2332.38

Uninstaller [IO: ▲0.01MB] [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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: seo, aggregator, javascript

aggregator/aggregator.php Passed 13 tests

The principal PHP file in "Aggregator" v. 2.1.2 is loaded by WordPress automatically on each request
20 characters long description:
Aggregates js files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin872 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7282506854
JavaScript44016
Markdown1102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity23.67
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods56
▷ Static methods23.57%
▷ Public methods3969.64%
▷ Protected methods1425.00%
▷ Private methods35.36%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin