84% second-street-promotion

Code Review | Second Street

WordPress plugin Second Street scored84%from 54 tests.

About plugin

  • Plugin page: second-street-pro...
  • Plugin version: 3.1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Nov 16, 2023
  • Number of updates: 34
  • Update frequency: every 99.2 days
  • Top authors: ssmwordpressdev (76.47%)mccarron2000 (26.47%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /10,903 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.64ms] Passed 4 tests

This is a short check of server-side resources used by Second Street
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.93 ▼0.01
Dashboard /wp-admin3.33 ▲0.0245.58 ▼7.40
Posts /wp-admin/edit.php3.38 ▲0.0246.50 ▲1.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.69 ▼20.79
Media Library /wp-admin/upload.php3.25 ▲0.0234.56 ▲1.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Second Street
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.13 ▼0.041.62 ▼0.1739.78 ▼6.26
Dashboard /wp-admin2,198 ▲215.64 ▼0.0791.25 ▼12.4340.88 ▼7.02
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0139.88 ▲1.8037.10 ▲3.20
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.29602.79 ▼34.8953.93 ▼2.60
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.0396.11 ▼8.3544.22 ▼0.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/second-street-promotion/secondstreet-promotion.php

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: second street, shortcode, page, promotion, post...

second-street-promotion/secondstreet-promotion.php 92% from 13 tests

"Second Street" version 3.1.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("second-street-promotion.php" instead of "secondstreet-promotion.php")

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
Everything looks great! No dangerous files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1272776

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin