89% my-content-management

Code Review | My Content Management

WordPress plugin My Content Management scored89%from 54 tests.

About plugin

  • Plugin page: my-content-manage...
  • Plugin version: 1.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2011
  • Latest release: Jun 30, 2023
  • Number of updates: 178
  • Update frequency: every 23.9 days
  • Top authors: joedolson (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /35,836 total downloads

Benchmarks

Plugin footprint 83% 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.88MB] [CPU: ▲0.40ms] Passed 4 tests

Server-side resources used by My Content Management
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.34 ▲0.8846.82 ▲4.46
Dashboard /wp-admin4.22 ▲0.9261.89 ▲5.90
Posts /wp-admin/edit.php4.27 ▲0.9255.36 ▼4.55
Add New Post /wp-admin/post-new.php6.76 ▲0.8898.35 ▼4.21
Media Library /wp-admin/upload.php4.08 ▲0.8543.72 ▲6.72
Custom Fields /wp-admin/edit.php?post_type=attachment&page=attachment_fields4.0738.50
Custom Fields /wp-admin/edit.php?post_type=wp_navigation&page=wp_navigation_fields4.0738.82
Custom Fields /wp-admin/edit.php?page=post_fields4.0739.25
Custom Fields /wp-admin/edit.php?post_type=post&page=post_fields4.0739.79
My Custom Fields /wp-admin/options-general.php?page=mcm_custom_fields4.0740.07
Custom Fields /wp-admin/edit.php?post_type=wp_block&page=wp_block_fields4.0741.64
My Content Management /wp-admin/options-general.php?page=mcm_settings4.0733.92
Custom Fields /wp-admin/edit.php?post_type=page&page=page_fields4.0738.01

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 11 new options
New WordPress options
mcm_version
can_compress_scripts
theysaidso_admin_options
mcm_options
widget_recent-posts
widget_mcm_meta_widget
widget_mcm_posts_widget
widget_recent-comments
db_upgraded
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by My Content Management
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.22 ▼0.121.98 ▼0.1143.75 ▲0.38
Dashboard /wp-admin2,211 ▲315.64 ▲0.0296.72 ▲4.3042.57 ▲2.96
Posts /wp-admin/edit.php2,113 ▲102.02 ▲0.0834.80 ▼5.6334.96 ▲1.44
Add New Post /wp-admin/post-new.php1,554 ▲2823.17 ▲0.00658.73 ▼5.3435.41 ▼29.29
Media Library /wp-admin/upload.php1,419 ▲164.21 ▼0.0298.24 ▼7.2344.09 ▼1.73
Custom Fields /wp-admin/edit.php?post_type=attachment&page=attachment_fields1,1693.3874.7338.20
Custom Fields /wp-admin/edit.php?post_type=wp_navigation&page=wp_navigation_fields1,1693.3571.9933.58
Custom Fields /wp-admin/edit.php?page=post_fields1,1733.3065.6433.10
Custom Fields /wp-admin/edit.php?post_type=post&page=post_fields1,1703.2868.6131.61
My Custom Fields /wp-admin/options-general.php?page=mcm_custom_fields1,3083.2973.3032.14
Custom Fields /wp-admin/edit.php?post_type=wp_block&page=wp_block_fields1,1663.2966.8932.04
My Content Management /wp-admin/options-general.php?page=mcm_settings1,3403.2868.7939.04
Custom Fields /wp-admin/edit.php?post_type=page&page=page_fields1,1733.2867.5830.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_mcm_posts_widget
    • widget_mcm_meta_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_mcm_search_widget

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: faq, glossary, staff, testimonials, sidebars...

my-content-management/my-content-management.php 85% from 13 tests

Analyzing the main PHP file in "My Content Management" version 1.7.7
The following require your attention:
  • Domain Path: The domain path must begin with a forward slash character ("/lang")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang")

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
Everything looks great! No dangerous files found in this plugin4,297 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP92629224,077
JavaScript4414147
CSS210073

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions100
▷ Named functions100100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mcm_resources.png0.68KB0.83KB0.00%
images/up.png0.34KB0.38KB0.00%
images/mcm_locations.png0.80KB1.06KB0.00%
images/mcm_faq.png0.75KB0.67KB▼ 9.93%
images/mcm_testimonials.png0.65KB0.61KB▼ 5.73%