10% g-live-cms

Code Review | G-Live CMS

WordPress plugin G-Live CMS scored 10% from 54 tests.

About plugin

  • Plugin page: g-live-cms
  • Plugin version: 0.7
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-7.4
  • WordPress version: 5.8.1
  • First release: Mar 4, 2021
  • Latest release: Jul 19, 2021
  • Number of updates: 13
  • Update frequency: every 10.6 days
  • Top authors: genialp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 289 total downloads


Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/g-live-cms/GLiveCMS_Plugin.php+58
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼0.29MB] [CPU: ▼176.77ms] 75% from 4 tests

A check of server-side resources used by G-Live CMS
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 2,512.26ms on /wp-admin/plugins.php?page=GLiveCMS_PluginSettings)
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4145.76 ▲23.59
Dashboard /wp-admin3.43 ▲0.3853.01 ▲8.85
Posts /wp-admin/edit.php3.47 ▲0.3653.67 ▲14.63
Add New Post /wp-admin/post-new.php3.21 ▼2.2232.39 ▼738.16
Media Library /wp-admin/upload.php3.31 ▲0.3141.32 ▲7.62
G-Live CMS /wp-admin/plugins.php?page=GLiveCMS_PluginSettings3.292,512.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 24 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by G-Live CMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.31 ▲0.789.96 ▲0.9946.47 ▲2.37
Dashboard /wp-admin2,978 ▲415.89 ▼0.09142.95 ▼13.83107.24 ▲2.81
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0065.40 ▼2.0588.55 ▲2.42
Add New Post /wp-admin/post-new.php1,675 ▲6019.17 ▼2.25395.38 ▲71.96107.91 ▲10.16
Media Library /wp-admin/upload.php1,812 ▲55.02 ▼0.02154.44 ▲8.23115.68 ▲1.13
G-Live CMS /wp-admin/plugins.php?page=GLiveCMS_PluginSettings2,9162.0857.14103.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 24 options in the database
    • GLiveCMS_Plugin_--main-fg
    • GLiveCMS_Plugin_--grid-sep
    • GLiveCMS_Plugin_--even-row
    • GLiveCMS_Plugin_--time-col
    • GLiveCMS_Plugin__installed
    • GLiveCMS_Plugin_country
    • GLiveCMS_Plugin_defaultAppLanguage
    • GLiveCMS_Plugin_--links
    • GLiveCMS_Plugin_createCustomPostType
    • GLiveCMS_Plugin_--main-bg
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-live-cms/GLiveCMS.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/g-live-cms/event.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=GLiveCMS_PluginSettings
    • > Rendering (warning) in unknown
    /wp-admin/plugins.php?page=GLiveCMS_PluginSettings 561 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.


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
3 plugin tags: g-live, wiclax, race scoring

g-live-cms/GLiveCMS.php 85% from 13 tests

Analyzing the main PHP file in "G-Live CMS" version 0.7
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("g-live-cms.php" instead of "GLiveCMS.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,089 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File4359381822

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity22.71
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
▷ Static methods55.38%
▷ Public methods6468.82%
▷ Protected methods2931.18%
▷ Private methods00.00%
▷ Named functions1270.59%
▷ Anonymous functions529.41%
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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