84% wp-show-more

Code Review | WP show more

WordPress plugin WP show more scored 84% from 54 tests.

About plugin

  • Plugin page: wp-show-more
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Aug 4, 2015
  • Latest release: May 8, 2023
  • Number of updates: 39
  • Update frequency: every 72.7 days
  • Top authors: rene.maurer (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

10,000+ active / 69,202 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: ▲0.97ms] Passed 4 tests

Server-side resources used by WP show more
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.16 ▼4.13
Dashboard /wp-admin3.32 ▲0.0256.05 ▲0.53
Posts /wp-admin/edit.php3.37 ▲0.0152.45 ▲7.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.02 ▲12.36
Media Library /wp-admin/upload.php3.24 ▲0.0135.04 ▼0.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP show more
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12613.62 ▼0.765.89 ▲3.5444.49 ▲1.17
Dashboard /wp-admin2,206 ▲715.88 ▲0.25107.89 ▼1.1542.54 ▼2.64
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0242.47 ▲3.6034.96 ▼2.16
Add New Post /wp-admin/post-new.php1,542 ▲818.10 ▼5.02614.13 ▼115.0354.63 ▼3.88
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.03104.60 ▲1.3745.11 ▼2.97

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-show-more/wp-show-more.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: show more, read more, more, less, read less

wp-show-more/wp-show-more.php 92% from 13 tests

This is the main PHP file of "WP show more" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Good job! No executable or dangerous file extensions detected70 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP131137
CSS10020
JavaScript10013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin