84% lyntonweb-scribe-integration

Code Review | LyntonWeb Scribe Integration

WordPress plugin LyntonWeb Scribe Integration scored 84% from 54 tests.

About plugin

  • Plugin page: lyntonweb-scribe-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Apr 5, 2018
  • Latest release: Aug 2, 2018
  • Number of updates: 3
  • Update frequency: every 77.0 days
  • Top authors: lyntonweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.92ms] Passed 4 tests

Server-side resources used by LyntonWeb Scribe Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.66 ▼3.95
Dashboard /wp-admin3.34 ▲0.0443.37 ▼5.55
Posts /wp-admin/edit.php3.39 ▲0.0347.44 ▲6.54
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.67 ▲4.32
Media Library /wp-admin/upload.php3.26 ▲0.0336.12 ▲1.49

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

LyntonWeb Scribe Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.351.81 ▲0.0141.08 ▼2.27
Dashboard /wp-admin2,203 ▲154.83 ▼1.10109.14 ▼4.7639.89 ▼5.86
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.93 ▼0.6534.62 ▼6.22
Add New Post /wp-admin/post-new.php1,542 ▲2318.20 ▼4.81607.88 ▼42.4065.44 ▲12.38
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0092.28 ▼16.9441.01 ▼1.98

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/lyntonweb-scribe-integration/uninstall.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lyntonweb-scribe-integration/lw-scribe-integration.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: api, scribesoft, lyntonweb, data, integration

lyntonweb-scribe-integration/lw-scribe-integration.php 85% from 13 tests

"LyntonWeb Scribe Integration" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 330 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("lyntonweb-scribe-integration.php" instead of "lw-scribe-integration.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 plugin185 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25421185

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions969.23%
▷ Anonymous functions430.77%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin