84% scroll-post-excerpt

Code Review | Scroll post excerpt

WordPress plugin Scroll post excerpt scored84%from 54 tests.

About plugin

  • Plugin page: scroll-post-excerpt
  • Plugin version: 8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2011
  • Latest release: Dec 1, 2022
  • Number of updates: 46
  • Update frequency: every 89.0 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

900+ active /52,467 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.04MB] [CPU: ▼3.60ms] Passed 4 tests

Server-side resources used by Scroll post excerpt
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0444.56 ▼5.15
Dashboard /wp-admin3.39 ▲0.0451.02 ▼0.76
Posts /wp-admin/edit.php3.50 ▲0.1049.75 ▲0.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0483.85 ▼8.54
Media Library /wp-admin/upload.php3.31 ▲0.0437.57 ▲1.70
Scroll post excerpt /wp-admin/options-general.php?page=scroll-post-excerpt/scroll-post-excerpt.php3.3332.51

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 16 new options
New WordPress options
db_upgraded
spe_select_categories
widget_recent-posts
spe_select_orderby
can_compress_scripts
spe_dis_num_user
widget_recent-comments
spe_excerpt_length
widget_theysaidso_widget
spe_select_num_user
...

Browser metrics Passed 4 tests

Scroll post excerpt: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.35 ▼0.021.96 ▼0.2144.13 ▼2.91
Dashboard /wp-admin2,202 ▲225.63 ▲0.0486.32 ▼0.8241.72 ▼2.84
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0135.27 ▲0.4333.05 ▼8.60
Add New Post /wp-admin/post-new.php1,531 ▼423.15 ▲4.90677.90 ▲44.4251.85 ▼33.57
Media Library /wp-admin/upload.php1,404 ▲104.22 ▲0.0796.48 ▼5.7743.68 ▼1.20
Scroll post excerpt /wp-admin/options-general.php?page=scroll-post-excerpt/scroll-post-excerpt.php9812.1222.2427.92

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/scroll-post-excerpt/scroll-post-excerpt.php
    • > /wp-content/plugins/scroll-post-excerpt/scroll-post-setting.php

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: excerpt, post, scroll

scroll-post-excerpt/scroll-post-excerpt.php 92% from 13 tests

The entry point to "Scroll post excerpt" version 8.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin598 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP35417328
PO File38490231
JavaScript172638
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
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