83% curatorio

Code Review | Curator.io: Show all your social media posts in a beautiful feed.

WordPress plugin Curator.io: Show all your social media posts in a beautiful feed. scored83%from 54 tests.

About plugin

  • Plugin page: curatorio
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 11, 2018
  • Latest release: Jul 7, 2022
  • Number of updates: 19
  • Update frequency: every 78.5 days
  • Top authors: curatorio (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /23,517 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.04MB] [CPU: ▼8.26ms] Passed 4 tests

This is a short check of server-side resources used by Curator.io: Show all your social media posts in a beautiful feed.
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.71 ▼2.03
Dashboard /wp-admin3.36 ▲0.0147.71 ▼14.94
Posts /wp-admin/edit.php3.47 ▲0.1247.87 ▼3.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.25 ▼12.60
Media Library /wp-admin/upload.php3.28 ▲0.0535.98 ▲4.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Curator.io: Show all your social media posts in a beautiful feed.
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.31 ▼1.051.77 ▼0.0842.64 ▼3.97
Dashboard /wp-admin2,229 ▲384.95 ▼0.95103.41 ▲4.7671.91 ▲26.48
Posts /wp-admin/edit.php2,119 ▲272.05 ▲0.0238.81 ▲1.2435.72 ▲4.01
Add New Post /wp-admin/post-new.php1,547 ▲2818.18 ▼5.04701.41 ▲44.0781.20 ▲20.30
Media Library /wp-admin/upload.php1,412 ▲274.22 ▼0.0596.22 ▼18.0674.21 ▲25.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/curatorio/curator.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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:
  • Tags: Please delete some tags, you are using 34 tag instead of maximum 10
You can look at the official readme.txt

curatorio/curator.php 85% from 13 tests

The entry point to "Curator.io: Show all your social media posts in a beautiful feed." version 1.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("curatorio.php" instead of "curator.php")

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 plugin342 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP47448326
SVG20116

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.31MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/feed-public-key.png83.84KB31.61KB▼ 62.30%
images/ex1.png175.10KB49.81KB▼ 71.55%
images/ex-new.png55.45KB21.85KB▼ 60.60%