84% liner-in-site

Code Review | LINER In-Site

WordPress plugin LINER In-Site scored84%from 54 tests.

About plugin

  • Plugin page: liner-in-site
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Nov 13, 2017
  • Number of updates: 8
  • Update frequency: every 5.5 days
  • Top authors: liner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.61ms] Passed 4 tests

Analyzing server-side resources used by LINER In-Site
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.86 ▼7.66
Dashboard /wp-admin3.31 ▲0.0146.44 ▼6.28
Posts /wp-admin/edit.php3.36 ▲0.0145.50 ▼1.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.17 ▼7.41
Media Library /wp-admin/upload.php3.24 ▲0.0137.18 ▲3.61

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by LINER In-Site
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.16 ▼1.491.94 ▲0.2536.98 ▼6.51
Dashboard /wp-admin2,210 ▲255.77 ▲0.7699.79 ▼4.4036.73 ▼6.22
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0534.04 ▼3.6233.64 ▼1.37
Add New Post /wp-admin/post-new.php1,680 ▲14724.73 ▲1.71597.21 ▼83.6254.40 ▲2.20
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.0894.30 ▼8.4141.05 ▼1.59

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/liner-in-site/liner-in-site.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: getliner, highlights, liner, linerinsite, highlighting...

liner-in-site/liner-in-site.php Passed 13 tests

"LINER In-Site" version 0.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
78 characters long description:
LINER helps you highlight sentences on the web. Highlight your favorite texts.

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
There were no executable files found in this plugin29 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2202929

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin