10% ultimate-cms

Code Review | Ultimate CMS

WordPress plugin Ultimate CMS scored10%from 54 tests.

About plugin

  • Plugin page: ultimate-cms
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2011
  • Latest release: Oct 16, 2018
  • Number of updates: 43
  • Update frequency: every 60.9 days
  • Top authors: deepak.seth (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

80+ active /18,044 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/ultimate-cms/index.php+175
    closedir(): supplied resource is not a valid Directory resource

Server metrics [RAM: ▼1.27MB] [CPU: ▼48.31ms] Passed 4 tests

A check of server-side resources used by Ultimate CMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7410.20 ▼33.71
Dashboard /wp-admin2.75 ▼0.5613.32 ▼36.62
Posts /wp-admin/edit.php2.75 ▼0.6115.70 ▼34.53
Add New Post /wp-admin/post-new.php2.75 ▼3.1414.74 ▼88.36
Media Library /wp-admin/upload.php2.75 ▼0.4915.19 ▼22.99

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 106 new files
Database: 1 new table, 9 new options
New tables
wp_taxonomymeta
New WordPress options
xydac_cms_modules
xydac_cms_ver
widget_recent-posts
xydac_cms_modules_old_hash
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate CMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲24619.67 ▲5.1719.43 ▲17.8237.53 ▼3.17
Dashboard /wp-admin2,228 ▲516.64 ▲1.04124.34 ▲37.9938.87 ▼5.51
Posts /wp-admin/edit.php2,122 ▲223.98 ▲1.9854.60 ▲18.8135.77 ▲4.17
Add New Post /wp-admin/post-new.php1,560 ▲3424.76 ▲1.44685.60 ▼5.2735.57 ▼23.00
Media Library /wp-admin/upload.php1,439 ▲395.98 ▲1.83102.07 ▲5.0541.32 ▼8.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/ultimate-cms/index.php+175
    closedir(): supplied resource is not a valid Directory resource
  • Zombie tables detected upon uninstall: 1 table
    • wp_taxonomymeta
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_theysaidso_widget
    • xydac_cms_modules_old_hash
    • widget_recent-comments
    • xydac_cms_ver
    • xydac_cms_modules
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ultimate-cms/script.php
    • > /wp-content/plugins/ultimate-cms/css.php
  • 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'field_type' not found in wp-content/plugins/ultimate-cms/fieldTypes/class-image.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'xydac_cms_module' not found in wp-content/plugins/ultimate-cms/class-xydac-cms-home.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ultimate-cms/includes/includes-tab-import.php:86
    • > PHP Fatal error
      Uncaught Error: Class 'xydac_ultimate_cms_core' not found in wp-content/plugins/ultimate-cms/modules/moduleManager/class-xydac-module-manager-manager.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'field_type' not found in wp-content/plugins/ultimate-cms/fieldTypes/class-nivoslider.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'xydac_ultimate_cms_core' not found in wp-content/plugins/ultimate-cms/modules/archiver/class-xydac-archive-type-manager.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'xydac_ultimate_cms_core' not found in wp-content/plugins/ultimate-cms/modules/moduleManager/class-xydac-module-manager-manager.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-cms/modules/taxonomy/class-xydac-tax-detail-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'xydac_ultimate_cms_core' not found in wp-content/plugins/ultimate-cms/modules/forms/class-xydac-forms-fields.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'field_type' not found in wp-content/plugins/ultimate-cms/fieldTypes/class-sidebar.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Ultimate CMS Menu), #2 (Module Manager), #3 (Post Type Manager Add), #4 (Post Type Manager Edit), #5 (Post Type Manager Fields), #6 (Taxonomy Manager), #7 (Post Type Backend Custom Field Form), #8 (Taxonomy Rewrite Option)
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

ultimate-cms/index.php 85% from 13 tests

"Ultimate CMS" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-cms.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,370 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP689436997,129
CSS6174931,113
JavaScript32227128

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity23.48
▷ Minimum class complexity1.00
▷ Maximum class complexity237.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes63
▷ Abstract classes46.35%
▷ Concrete classes5993.65%
▷ Final classes00.00%
Methods400
▷ Static methods164.00%
▷ Public methods39097.50%
▷ Protected methods00.00%
▷ Private methods102.50%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
12 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
fieldTypes/nivoslider/pascal/bullets.png3.23KB0.49KB▼ 84.97%
fieldTypes/nivoslider/orman/bullets.png3.29KB0.71KB▼ 78.39%
fieldTypes/nivoslider/pascal/controlnav.png5.60KB2.51KB▼ 55.19%
fieldTypes/nivoslider/default/bullets.png1.25KB1.08KB▼ 13.74%
fieldTypes/nivoslider/pascal/ribbon.png10.72KB3.59KB▼ 66.48%