79% my-content-management

Code Review | My Content Management

WordPress plugin My Content Management scored 79% from 54 tests.

About plugin

  • Plugin page: my-content-manage...
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4
  • WordPress version: 5.9.2
  • First release: Nov 3, 2011
  • Latest release: Oct 30, 2020
  • Number of updates: 170
  • Update frequency: every 19.3 days
  • Top authors: joedolson (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 33,083 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.58MB] [CPU: ▼316.41ms] Passed 4 tests

A check of server-side resources used by My Content Management
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.8359.55 ▲6.74
Dashboard /wp-admin4.22 ▲0.8138.01 ▲4.66
Posts /wp-admin/edit.php4.44 ▲0.8140.41 ▲3.50
Add New Post /wp-admin/post-new.php6.85 ▼0.1281.39 ▼1,273.01
Media Library /wp-admin/upload.php4.17 ▲0.8727.17 ▼0.78
Custom Fields /wp-admin/edit.php?post_type=page&page=page_fields4.0927.14
Custom Fields /wp-admin/edit.php?page=post_fields4.0926.36
Custom Fields /wp-admin/edit.php?post_type=wp_block&page=wp_block_fields4.0926.30
My Content Management /wp-admin/options-general.php?page=my-content-management/my-content-management.php3.9824.53
Custom Fields /wp-admin/edit.php?post_type=attachment&page=attachment_fields4.0926.57
Custom Fields /wp-admin/edit.php?post_type=wp_navigation&page=wp_navigation_fields4.0930.30
My Custom Fields /wp-admin/options-general.php?page=mcm_custom_fields3.9822.45
Custom Fields /wp-admin/edit.php?post_type=post&page=post_fields4.0926.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 5 new options
New WordPress options
widget_mcm_search_widget
widget_mcm_meta_widget
mcm_options
mcm_version
widget_mcm_posts_widget

Browser metrics Passed 4 tests

My Content Management: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲9316.17 ▲0.495.92 ▲0.302.75 ▲0.33
Dashboard /wp-admin2,908 ▲546.07 ▼0.08114.63 ▼20.40152.36 ▼5.34
Posts /wp-admin/edit.php2,711 ▲203.24 ▲0.0163.39 ▼0.45140.56 ▼3.93
Add New Post /wp-admin/post-new.php1,687 ▲1922.73 ▲3.92422.56 ▲25.30173.21 ▲13.49
Media Library /wp-admin/upload.php1,718 ▲235.53 ▲0.05150.69 ▲4.04186.19 ▼1.57
Custom Fields /wp-admin/edit.php?post_type=page&page=page_fields1,4644.00103.78177.03
Custom Fields /wp-admin/edit.php?page=post_fields1,4603.93108.99166.27
Custom Fields /wp-admin/edit.php?post_type=wp_block&page=wp_block_fields1,4553.9794.54164.29
My Content Management /wp-admin/options-general.php?page=my-content-management/my-content-management.php2,0064.1496.36198.54
Custom Fields /wp-admin/edit.php?post_type=attachment&page=attachment_fields1,4593.9696.25170.08
Custom Fields /wp-admin/edit.php?post_type=wp_navigation&page=wp_navigation_fields1,4593.9296.16165.12
My Custom Fields /wp-admin/options-general.php?page=mcm_custom_fields1,6204.1393.29155.85
Custom Fields /wp-admin/edit.php?post_type=post&page=post_fields1,4633.9796.39168.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 3 options
    • widget_mcm_search_widget
    • widget_mcm_posts_widget
    • widget_mcm_meta_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mcm_custom_fields
    • > User notice in wp-includes/functions.php+5768
    WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mcm_custom_fields
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: firstItem is not defined" "ReferenceError: firstItem is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/my-content-management/js/tabs.js?ver=5.9.2:3:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mcm_custom_fields
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught ReferenceError: firstItem is not defined

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: staff, content management, glossary, faq, custom post types...

my-content-management/my-content-management.php Passed 13 tests

"My Content Management" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
Creates a set of common custom post types for extended content management: FAQ, Testimonials, people lists, term lists, etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,700 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP52202133,468
JavaScript5414157
CSS210075

PHP code Passed 2 tests

An overview of 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.46
Average class complexity19.33
▷ Minimum class complexity7.00
▷ Maximum class complexity31.00
Average method complexity5.58
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions99
▷ Named functions99100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mcm_locations.png0.80KB1.06KB0.00%
images/mcm_faq.png0.75KB0.67KB▼ 9.93%
images/up.png0.34KB0.38KB0.00%
images/mcm_people.png0.78KB0.80KB0.00%
images/mcm_quotes.png0.64KB0.61KB▼ 5.61%