89% lh-paragraph-ids

Code Review | LH Paragraph Ids

WordPress plugin LH Paragraph Ids scored89%from 54 tests.

About plugin

  • Plugin page: lh-paragraph-ids
  • Plugin version: 2.00
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Mar 19, 2015
  • Latest release: Aug 8, 2022
  • Number of updates: 12
  • Update frequency: every 224.9 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.67ms] Passed 4 tests

Analyzing server-side resources used by LH Paragraph Ids
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.81 ▼0.30
Dashboard /wp-admin3.36 ▲0.0644.40 ▼0.49
Posts /wp-admin/edit.php3.47 ▲0.1246.15 ▼1.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.43 ▼12.18
Media Library /wp-admin/upload.php3.28 ▲0.0635.15 ▲4.37

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

LH Paragraph Ids: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.36 ▼1.005.17 ▲3.5636.85 ▼3.39
Dashboard /wp-admin2,206 ▲185.86 ▲0.79110.49 ▲4.5238.69 ▼2.14
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0239.78 ▼2.8735.08 ▼0.20
Add New Post /wp-admin/post-new.php1,542 ▲1423.23 ▲4.79593.89 ▼11.6053.85 ▼4.98
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0199.32 ▲2.8442.69 ▼2.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
8 plugin tags: paragraphs, id, html, indieweb, links...

lh-paragraph-ids/lh-paragraph-ids.php 85% from 13 tests

Analyzing the main PHP file in "LH Paragraph Ids" version 2.00
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected247 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP323452229
JavaScript15118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity25.50
▷ Minimum class complexity15.00
▷ Maximum class complexity36.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1157.89%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin