74% curator-studio-twitter

Code Review | Curator Studio - Twitter - Show tweets, mentions and more

WordPress plugin Curator Studio - Twitter - Show tweets, mentions and more scored 74% from 54 tests.

About plugin

  • Plugin page: curator-studio-tw...
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2020
  • Latest release: May 2, 2021
  • Number of updates: 5
  • Update frequency: every 29.8 days
  • Top authors: plugin.builders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 545 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼3.39ms] Passed 4 tests

This is a short check of server-side resources used by Curator Studio - Twitter - Show tweets, mentions and more
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.61 ▲3.74
Dashboard /wp-admin3.44 ▲0.1342.70 ▼15.68
Posts /wp-admin/edit.php3.55 ▲0.1957.78 ▲2.12
Add New Post /wp-admin/post-new.php6.36 ▲0.47164.16 ▲54.15
Media Library /wp-admin/upload.php3.36 ▲0.1341.31 ▼3.74
Curator Studio /wp-admin/admin.php?page=curator-studio3.2329.98
Twitter /wp-admin/admin.php?page=curator-studio-twitter3.3330.12

Server storage [IO: ▲1.76MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 151 new files
Database: 3 new tables, 6 new options
New tables
wp_cstudio_items
wp_cstudio_sources
wp_cstudio_apps
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Curator Studio - Twitter - Show tweets, mentions and more: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6613.29 ▼1.144.54 ▲1.7346.19 ▼1.12
Dashboard /wp-admin2,233 ▲455.85 ▼0.02104.24 ▼30.6543.33 ▼11.75
Posts /wp-admin/edit.php2,098 ▲62.03 ▲0.0372.76 ▲19.5676.70 ▲31.88
Add New Post /wp-admin/post-new.php1,443 ▲4617.67 ▼0.03849.10 ▲74.4175.15 ▲15.88
Media Library /wp-admin/upload.php1,415 ▲274.26 ▼0.02122.58 ▼8.7650.51 ▼8.57
Curator Studio /wp-admin/admin.php?page=curator-studio1,0195.53136.6172.45
Twitter /wp-admin/admin.php?page=curator-studio-twitter1,0135.57145.0472.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_cstudio_apps
    • wp_cstudio_items
    • wp_cstudio_sources
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Please fix the following items
  • 16× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/curator-studio-twitter/utils/URL/Twitter.php
    • > /wp-content/plugins/curator-studio-twitter/core/Infra.php
    • > /wp-content/plugins/curator-studio-twitter/utils/URL/YouTube.php
    • > /wp-content/plugins/curator-studio-twitter/utils/URL/Vimeo.php
    • > /wp-content/plugins/curator-studio-twitter/core/CuratorList.php
    • > /wp-content/plugins/curator-studio-twitter/db/SafeMySQL.php
    • > /wp-content/plugins/curator-studio-twitter/db/DB.php
    • > /wp-content/plugins/curator-studio-twitter/core/Store.php
    • > /wp-content/plugins/curator-studio-twitter/start.php
    • > /wp-content/plugins/curator-studio-twitter/platform/Twitter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

curator-studio-twitter/start.php 92% from 13 tests

Analyzing the main PHP file in "Curator Studio - Twitter - Show tweets, mentions and more" version 0.1.1
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("curator-studio-twitter.php" instead of "start.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected14,372 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript851,2604428,023
PHP206694253,350
Vuejs Component4342092,999

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.53
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods253
▷ Static methods7529.64%
▷ Public methods23291.70%
▷ Protected methods103.95%
▷ Private methods114.35%
Functions50
▷ Named functions816.00%
▷ Anonymous functions4284.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin