89% gosign-post-teaser-block

Code Review | Gosign - Post Teaser Block

WordPress plugin Gosign - Post Teaser Block scored89%from 54 tests.

About plugin

  • Plugin page: gosign-post-tease...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: May 19, 2022
  • Number of updates: 16
  • Update frequency: every 72.1 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,330 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.01MB] [CPU: ▼9.17ms] Passed 4 tests

Server-side resources used by Gosign - Post Teaser Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.96 ▲0.97
Dashboard /wp-admin3.31 ▼0.0443.12 ▼16.82
Posts /wp-admin/edit.php3.36 ▲0.0046.08 ▼2.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.52 ▼18.03
Media Library /wp-admin/upload.php3.23 ▲0.0036.56 ▲1.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Gosign - Post Teaser Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.66 ▼0.722.01 ▲0.4441.26 ▲3.25
Dashboard /wp-admin2,209 ▲245.85 ▼0.00102.42 ▲2.7039.48 ▼2.80
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0333.62 ▼4.2534.40 ▼1.54
Add New Post /wp-admin/post-new.php6,353 ▲4,82528.11 ▲9.95923.27 ▲277.0567.18 ▲16.54
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.05108.61 ▲7.5043.78 ▼0.89

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: A description for screenshot #1 is missing in gosign-post-teaser-block/assets to your readme.txt
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

gosign-post-teaser-block/plugin.php 92% from 13 tests

This is the main PHP file of "Gosign - Post Teaser Block" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gosign-post-teaser-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,086 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON2006,561
JavaScript41737289
PHP2125396
Markdown121077
Sass362262
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions4
▷ Named functions4100.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
No PNG files were detected