68% mycurator

Code Review | MyCurator Content Curation

WordPress plugin MyCurator Content Curation scored68%from 54 tests.

About plugin

  • Plugin page: mycurator
  • Plugin version: 3.76
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4
  • WordPress version: 6.3.1
  • First release: Jul 1, 2012
  • Latest release: Nov 15, 2023
  • Number of updates: 147
  • Update frequency: every 28.3 days
  • Top authors: mtilly (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /86,938 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.82ms] Passed 4 tests

An overview of server-side resources used by MyCurator Content Curation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.02 ▼4.12
Dashboard /wp-admin3.42 ▲0.1148.16 ▼2.09
Posts /wp-admin/edit.php3.47 ▲0.1250.29 ▲4.79
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.21 ▼18.95
Media Library /wp-admin/upload.php3.34 ▲0.1130.48 ▼2.13
Add New Training Post /wp-admin/post-new.php?post_type=target_ai3.4952.49
Training Posts /wp-admin/edit.php?post_type=target_ai3.4045.11
Dashboard /wp-admin/admin.php?page=mycurator/MyCurator.php3.3143.86
Logs /wp-admin/admin.php?page=mycurator/MyCurator.php_Logs3.3044.92

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: 4 new tables, 7 new options
New tables
wp_postsread
wp_topic
wp_sl_pages
wp_ai_logs
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
mct_ai_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for MyCurator Content Curation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲8514.21 ▼0.141.83 ▲0.1243.48 ▼1.71
Dashboard /wp-admin2,252 ▲725.63 ▼0.0194.35 ▼3.7940.66 ▼7.83
Posts /wp-admin/edit.php2,157 ▲571.97 ▲0.0335.37 ▼0.8131.24 ▼6.15
Add New Post /wp-admin/post-new.php6,322 ▲4,79626.13 ▲2.71935.37 ▲217.0970.93 ▲14.19
Media Library /wp-admin/upload.php1,457 ▲544.28 ▲0.0999.78 ▲1.8042.87 ▲0.47
Add New Training Post /wp-admin/post-new.php?post_type=target_ai2,4488.07206.3767.48
Training Posts /wp-admin/edit.php?post_type=target_ai1,7439.54322.3133.28
Dashboard /wp-admin/admin.php?page=mycurator/MyCurator.php1,2348.45228.0823.60
Logs /wp-admin/admin.php?page=mycurator/MyCurator.php_Logs1,3919.00242.5629.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 4 tables
    • wp_postsread
    • wp_sl_pages
    • wp_topic
    • wp_ai_logs
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • mct_ai_options
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mycurator/MyCurator_sourceit.php
    • > /wp-content/plugins/mycurator/MyCurator_getit.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mycurator/MyCurator.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycurator/MyCurator_local_proc.php:8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 53
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycurator/MyCurator_notebk.php:6
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 54
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mycurator/MyCurator.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycurator/MyCurator_posttypes.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycurator/MyCurator_link_redir.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
These attributes need your attention:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

mycurator/MyCurator.php 92% from 13 tests

"MyCurator Content Curation" version 3.76's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mycurator.php" instead of "MyCurator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin9,525 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP126591,1588,790
JavaScript41781580
CSS32014155

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity34.00
▷ Minimum class complexity18.00
▷ Maximum class complexity64.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
Functions158
▷ Named functions158100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.77MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png251.27KB81.29KB▼ 67.65%
thumbs_down.png0.74KB0.57KB▼ 22.43%
screenshot-1.png478.82KB131.84KB▼ 72.47%
screenshot-3.png51.37KB19.77KB▼ 61.51%
thumbs_up.png0.74KB0.57KB▼ 22.41%