84% mm-content-manage

Code Review | mm Content Manage

WordPress plugin mm Content Manage scored84%from 54 tests.

About plugin

  • Plugin page: mm-content-manage
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: May 26, 2013
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: mancabelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,076 total downloads

Benchmarks

Plugin footprint 83% 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.69MB] [CPU: ▼23.10ms] Passed 4 tests

Server-side resources used by mm Content Manage
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.63 ▼4.64
Dashboard /wp-admin3.33 ▼0.0245.96 ▼14.52
Posts /wp-admin/edit.php3.38 ▲0.0248.25 ▼3.23
Add New Post /wp-admin/post-new.php3.12 ▼2.7736.60 ▼70.02
Media Library /wp-admin/upload.php3.26 ▲0.0234.44 ▼0.48

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for mm Content Manage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.191.62 ▼0.1438.37 ▼1.46
Dashboard /wp-admin2,209 ▲215.87 ▲0.9697.77 ▼10.4446.14 ▲4.40
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0833.87 ▼2.9129.75 ▼2.07
Add New Post /wp-admin/post-new.php6,506 ▲4,99221.88 ▲4.46893.74 ▲244.5975.24 ▲20.14
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0097.86 ▼8.9942.37 ▼2.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mm-content-manage/MM_content_manage.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: private, content, excerpt, posts

mm-content-manage/MM_content_manage.php 85% from 13 tests

The entry point to "mm Content Manage" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("mm-content-manage.php" instead of "MM_content_manage.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin131 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1252896
PO File181435

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin