71% cm-curated-list-manager

Code Review | CM Curated List Manager

WordPress plugin CM Curated List Manager scored71%from 54 tests.

About plugin

  • Plugin page: cm-curated-list-m...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Jul 23, 2023
  • Number of updates: 132
  • Update frequency: every 20.1 days
  • Top authors: CreativeMindsSolutions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /8,028 total downloads

Benchmarks

Plugin footprint 82% 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.20MB] [CPU: ▼2.80ms] 75% from 4 tests

An overview of server-side resources used by CM Curated List Manager
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 975.73ms on /wp-admin/admin.php?page=cmlm-options)
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2141.60 ▼2.97
Dashboard /wp-admin3.54 ▲0.2454.96 ▲2.00
Posts /wp-admin/edit.php3.59 ▲0.2451.89 ▼0.76
Add New Post /wp-admin/post-new.php6.06 ▲0.1790.12 ▼9.45
Media Library /wp-admin/upload.php3.40 ▲0.1740.32 ▲6.26
Options /wp-admin/admin.php?page=cmlm-options3.65975.73
Upgrade ➤ /wp-admin/admin.php?page=cmlm_pro3.4336.66
Categories /wp-admin/edit-tags.php?taxonomy=cmlm_category3.4041.94
User Guide /wp-admin/admin.php?page=cmlm_about3.54425.44
Links /wp-admin/edit-tags.php?taxonomy=cmlm_link3.4441.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CM Curated List Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲6913.18 ▼1.501.89 ▼0.3645.91 ▼0.25
Dashboard /wp-admin2,264 ▲645.85 ▲0.00114.87 ▼8.8144.65 ▼2.26
Posts /wp-admin/edit.php2,140 ▲372.01 ▲0.0138.49 ▲3.8542.14 ▲8.80
Add New Post /wp-admin/post-new.php1,577 ▲3223.24 ▲0.09681.26 ▲40.6360.78 ▼4.25
Media Library /wp-admin/upload.php1,440 ▲404.21 ▲0.00105.15 ▼1.5745.95 ▼3.26
Options /wp-admin/admin.php?page=cmlm-options2,3178.2269.5683.97
Upgrade ➤ /wp-admin/admin.php?page=cmlm_pro1,8672.0936.6595.51
Categories /wp-admin/edit-tags.php?taxonomy=cmlm_category1,2632.0746.5434.52
User Guide /wp-admin/admin.php?page=cmlm_about3,99417.89378.05172.30
Links /wp-admin/edit-tags.php?taxonomy=cmlm_link1,3052.3237.0631.88

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cm-curated-list-manager/views/backend/taxonomies/common/quick_edit_custom_box.php
    • > /wp-content/plugins/cm-curated-list-manager/views/backend/options/nav.php
    • > /wp-content/plugins/cm-curated-list-manager/views/backend/taxonomies/common/quick_edit_custom_box_raw.php
  • 23× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cm-curated-list-manager/package/views/plugin_compare_table.php:51
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/cm-curated-list-manager/views/backend/taxonomies/common/quick_edit_custom_box.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/cm-curated-list-manager/views/backend/options/options.php:10
    • > PHP Notice
      Undefined variable: input_html in wp-content/plugins/cm-curated-list-manager/views/backend/taxonomies/common/quick_edit_custom_box_raw.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'com\\cminds\\listmanager\\plugin\\taxonomies\\TaxonomyAbstract' not found in wp-content/plugins/cm-curated-list-manager/plugin/taxonomies/LinkTaxonomy.php:11
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/cm-curated-list-manager/views/backend/taxonomies/common/quick_edit_custom_box_raw.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-curated-list-manager/package/cminds-plugin-config.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/cm-curated-list-manager/plugin/frontend/walkers/LinkWalker.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-curated-list-manager/package/cminds-plugin-config.php:3
    • > PHP Notice
      Undefined variable: name in wp-content/plugins/cm-curated-list-manager/views/backend/taxonomies/common/quick_edit_custom_box.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=cmlm_about
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=cmlm_about
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=cmlm_about
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/y7/r/kOkd6HZtIYJ.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=cmlm_about
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/y7/r/kOkd6HZtIYJ.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt might help

cm-curated-list-manager/cm-list-manager.php 85% from 13 tests

"CM Curated List Manager" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("cm-curated-list-manager.php" instead of "cm-list-manager.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 plugin6,175 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP308533785,285
CSS4938717
JavaScript72318173

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.30
Average class complexity22.50
▷ Minimum class complexity1.00
▷ Maximum class complexity254.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes16
▷ Abstract classes212.50%
▷ Concrete classes1487.50%
▷ Final classes00.00%
Methods160
▷ Static methods2113.12%
▷ Public methods13986.88%
▷ Protected methods159.38%
▷ Private methods63.75%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants23
▷ Global constants14.35%
▷ Class constants2295.65%
▷ Public constants22100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 PNG files occupy 0.53MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
package/css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
package/CMWPPluginssuite.png33.88KB12.59KB▼ 62.83%
package/css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
package/views/banner_yearly-membership_220px.png31.34KB10.91KB▼ 65.19%
package/css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%