73% plenigo

Code Review | Plenigo

WordPress plugin Plenigo scored73%from 54 tests.

About plugin

  • Plugin page: plenigo
  • Plugin version: 1.12.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 6, 2015
  • Latest release: Mar 24, 2021
  • Number of updates: 145
  • Update frequency: every 15.5 days
  • Top authors: plenigo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /5,273 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼21.59ms] Passed 4 tests

This is a short check of server-side resources used by Plenigo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0219.99 ▼27.31
Dashboard /wp-admin3.96 ▲0.6651.11 ▲0.84
Posts /wp-admin/edit.php4.01 ▲0.6549.73 ▼5.46
Add New Post /wp-admin/post-new.php5.18 ▼0.7045.32 ▼54.41
Media Library /wp-admin/upload.php3.82 ▲0.6043.00 ▲4.18

Server storage [IO: ▲1.03MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 182 new files
Database: 1 new table, 8 new options
New tables
wp_plenigo_log
New WordPress options
plenigo_settings
widget_theysaidso_widget
jal_db_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Plenigo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲18814.36 ▲0.0729.17 ▲27.2940.84 ▼3.77
Dashboard /wp-admin2,207 ▲335.71 ▲0.1192.63 ▼5.3380.38 ▲38.69
Posts /wp-admin/edit.php2,127 ▲272.05 ▲0.0138.57 ▼5.4933.70 ▼4.29
Add New Post /wp-admin/post-new.php1,704 ▲15923.00 ▼0.47704.89 ▲17.9833.37 ▼27.54
Media Library /wp-admin/upload.php1,428 ▲284.34 ▲0.12105.71 ▲1.0673.32 ▲27.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_plenigo_log
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_recent-posts
    • plenigo_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • jal_db_version
    • widget_theysaidso_widget
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\PlenigoWPSetting' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingProductGroupTwoDB.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/plenigo/plenigo_wordpress.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\SettingCurtainButtonBuy' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingCurtainButtonLogin.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'plenigo\\models\\Loggable' not found in wp-content/plugins/plenigo/plenigo_plugin/models/WordpressLogging.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\PlenigoWPSetting' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingCurtainBuyTextDB.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\PlenigoWPSetting' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingGACode.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\PlenigoWPSetting' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingCategoryTagDB.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\PlenigoWPSetting' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingWooProductType.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/plenigo/plenigo_plugin/PlenigoLoginWidget.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'plenigo_plugin\\settings\\PlenigoWPSetting' not found in wp-content/plugins/plenigo/plenigo_plugin/settings/SettingUseWPLogin.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

plenigo/plenigo_wordpress.php 77% from 13 tests

Analyzing the main PHP file in "Plenigo" version 1.12.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plenigo.php" instead of "plenigo_wordpress.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "4.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)

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 detected15,158 lines of code in 171 files:
LanguageFilesBlank linesComment linesLines of code
PHP1473,2089,24012,173
PO File69551,4032,143
JavaScript103828473
CSS2309271
HTML66698

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.19
▷ Minimum class complexity1.00
▷ Maximum class complexity217.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces18
Interfaces3
Traits0
Classes142
▷ Abstract classes42.82%
▷ Concrete classes13897.18%
▷ Final classes117.97%
Methods1,101
▷ Static methods19517.71%
▷ Public methods90782.38%
▷ Protected methods887.99%
▷ Private methods1069.63%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants486
▷ Global constants112.26%
▷ Class constants47597.74%
▷ Public constants475100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin