10% simple-history-ngg-loggers

Code Review | Simple History NGG Loggers

WordPress plugin Simple History NGG Loggers scored10%from 54 tests.

About plugin

  • Plugin page: simple-history-ng...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2016
  • Latest release: Feb 24, 2022
  • Number of updates: 14
  • Update frequency: every 140.8 days
  • Top authors: wpo-HR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /820 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-history-ngg-loggers/simple-history-ngg-loggers.php+39
    Non-static method Simple_History_Ngg_Loggers_Activator::activate() should not be called statically

Server metrics [RAM: ▲0.27MB] [CPU: ▼5.81ms] Passed 4 tests

An overview of server-side resources used by Simple History NGG Loggers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2743.43 ▲2.29
Dashboard /wp-admin3.57 ▲0.2752.62 ▲2.95
Posts /wp-admin/edit.php3.69 ▲0.3348.86 ▼3.38
Add New Post /wp-admin/post-new.php6.17 ▲0.2987.70 ▼24.57
Media Library /wp-admin/upload.php3.50 ▲0.2741.39 ▲2.41
Simple History NGG Loggers /wp-admin/options-general.php?page=simple_history_ngg_loggers3.4431.86

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
hr_NGL_settings
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Simple History NGG Loggers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.39 ▼0.968.48 ▲6.7241.52 ▼2.54
Dashboard /wp-admin2,203 ▲265.65 ▲0.0288.49 ▼6.8438.88 ▼1.46
Posts /wp-admin/edit.php2,108 ▲51.98 ▼0.0241.18 ▲1.6835.31 ▼4.13
Add New Post /wp-admin/post-new.php1,533 ▲723.59 ▲0.34611.49 ▼49.4268.26 ▲10.44
Media Library /wp-admin/upload.php1,408 ▲114.15 ▼0.0495.98 ▼0.9441.36 ▼9.80
Simple History NGG Loggers /wp-admin/options-general.php?page=simple_history_ngg_loggers9802.1725.1343.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • hr_NGL_settings
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=simple_history_ngg_loggers
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/nextgen-gallery): failed to open dir: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=simple_history_ngg_loggers
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/simple-history): failed to open dir: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=simple_history_ngg_loggers
    • > Notice in wp-content/plugins/simple-history-ngg-loggers/admin/class-simple-history-ngg-loggers-admin.php+980
    Undefined index: edit_post

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-history-ngg-loggers/public/partials/simple-history-ngg-loggers-public-display.php
    • > /wp-content/plugins/simple-history-ngg-loggers/admin/partials/simple-history-ngg-loggers-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: nextgen gallery, image description, custom loggers, simple history, image title...

simple-history-ngg-loggers/simple-history-ngg-loggers.php 92% from 13 tests

The entry point to "Simple History NGG Loggers" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,151 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12290767864
PO File1102245271
CSS22810
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.14
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods44
▷ Static methods12.27%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin