84% matcms

Code Review | MatCMS

WordPress plugin MatCMS scored84%from 54 tests.

About plugin

  • Plugin page: matcms
  • Plugin version: 1.2.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Oct 25, 2023
  • Number of updates: 30
  • Update frequency: every 21.8 days
  • Top authors: matmattia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.44ms] Passed 4 tests

Server-side resources used by MatCMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.33 ▼5.07
Dashboard /wp-admin3.31 ▲0.0143.99 ▼0.83
Posts /wp-admin/edit.php3.37 ▲0.0146.50 ▼3.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.67 ▼4.77
Media Library /wp-admin/upload.php3.24 ▲0.0133.10 ▼0.03

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for MatCMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▼0.271.68 ▼0.0438.68 ▼0.86
Dashboard /wp-admin2,195 ▲175.51 ▼0.2280.60 ▼31.0936.78 ▼7.56
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0236.72 ▼3.8634.03 ▼2.42
Add New Post /wp-admin/post-new.php1,526 ▼223.67 ▲0.83631.98 ▼52.9462.80 ▲5.30
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0396.38 ▼27.6541.77 ▼11.77

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/matcms/inc/matcms.class.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_menu' not found in wp-content/plugins/matcms/inc/bootstrap_5_wp_nav_menu_walker.class.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: developers, matcms

matcms/matcms.php Passed 13 tests

The main file in "MatCMS" v. 1.2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
This plugin adds to WordPress some utilities for developers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected414 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53286414

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity32.25
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity16.62
▷ Minimum method complexity4.00
▷ Maximum method complexity48.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods9
▷ Static methods666.67%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin