84% logora

Code Review | Logora

WordPress plugin Logora scored 84% from 54 tests.

About plugin

  • Plugin page: logora
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2020
  • Latest release: Jan 25, 2023
  • Number of updates: 14
  • Update frequency: every 59.2 days
  • Top authors: henryboisgibault (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▲2.66ms] Passed 4 tests

A check of server-side resources used by Logora
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1544.87 ▲1.26
Dashboard /wp-admin3.46 ▲0.1646.72 ▼1.27
Posts /wp-admin/edit.php3.58 ▲0.2250.38 ▲6.64
Add New Post /wp-admin/post-new.php6.05 ▲0.1692.90 ▲5.68
Media Library /wp-admin/upload.php3.39 ▲0.1636.91 ▲4.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
logora_prefix_path
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Logora
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.21 ▼1.141.81 ▼0.6945.49 ▼2.85
Dashboard /wp-admin2,219 ▲315.86 ▲0.0594.86 ▼23.5741.01 ▼2.85
Posts /wp-admin/edit.php2,108 ▲191.97 ▲0.0135.64 ▼0.3632.38 ▼1.97
Add New Post /wp-admin/post-new.php6,499 ▲4,98523.51 ▲5.83874.54 ▲190.1659.84 ▲7.08
Media Library /wp-admin/upload.php1,404 ▲194.30 ▲0.1494.97 ▼21.8542.18 ▼9.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/logora/templates/template-logora-app.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

logora/logora.php 92% from 13 tests

The main PHP file in "Logora" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected657 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14168757657

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.80
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods50
▷ Static methods714.00%
▷ Public methods4080.00%
▷ Protected methods00.00%
▷ Private methods1020.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected