78% g-live-cms

Code Review | G-Live CMS

WordPress plugin G-Live CMS scored78%from 54 tests.

About plugin

  • Plugin page: g-live-cms
  • Plugin version: 0.7.11
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Sep 28, 2023
  • Number of updates: 27
  • Update frequency: every 34.8 days
  • Top authors: genialp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▲3.68ms] Passed 4 tests

A check of server-side resources used by G-Live CMS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4046.54 ▲5.77
Dashboard /wp-admin3.70 ▲0.4052.57 ▲3.00
Posts /wp-admin/edit.php3.73 ▲0.3858.45 ▲11.10
Add New Post /wp-admin/post-new.php6.23 ▲0.34103.62 ▼2.27
Media Library /wp-admin/upload.php3.56 ▲0.3344.91 ▲8.22
G-Live CMS /wp-admin/plugins.php?page=GLiveCMS_PluginSettings3.63487.09

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, 14 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
GLiveCMS_Plugin_glive_cpt_to_enrich
GLiveCMS_Plugin_defaultAppLanguage
GLiveCMS_Plugin__version
GLiveCMS_Plugin_createCustomPostType
GLiveCMS_Plugin_noExport
...

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 /2,793 ▲3214.36 ▲0.011.54 ▼0.0738.50 ▼0.25
Dashboard /wp-admin2,196 ▲195.63 ▼0.0390.30 ▲2.7342.34 ▲1.40
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0439.36 ▲0.4633.42 ▼3.02
Add New Post /wp-admin/post-new.php1,529 ▲323.10 ▼0.03648.71 ▼23.4463.22 ▲4.85
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0395.57 ▲1.9140.50 ▼1.50
G-Live CMS /wp-admin/plugins.php?page=GLiveCMS_PluginSettings2,5272.1325.1334.43

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 14 options in the database
    • theysaidso_admin_options
    • GLiveCMS_Plugin__version
    • can_compress_scripts
    • widget_recent-posts
    • GLiveCMS_Plugin_defaultAppLanguage
    • GLiveCMS_Plugin_createCustomPostType
    • widget_theysaidso_widget
    • GLiveCMS_Plugin_noExport
    • GLiveCMS_Plugin_country
    • GLiveCMS_Plugin__installed
    • ...

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 status_header() in wp-content/plugins/g-live-cms/event.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-live-cms/GLiveCMS.php:77

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 568 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

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

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

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

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,142 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP92656421,320
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 complexity24.29
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
Methods93
▷ Static methods55.38%
▷ Public methods6468.82%
▷ Protected methods2931.18%
▷ Private methods00.00%
Functions19
▷ Named functions1263.16%
▷ Anonymous functions736.84%
Constants3
▷ 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