83% gospring

Code Review | Spring

WordPress plugin Spring scored83%from 54 tests.

About plugin

  • Plugin page: gospring
  • Plugin version: 6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Sep 5, 2022
  • Number of updates: 12
  • Update frequency: every 5.7 days
  • Top authors: aashish512 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.63ms] Passed 4 tests

An overview of server-side resources used by Spring
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.85 ▲2.63
Dashboard /wp-admin3.32 ▼0.0351.33 ▼18.03
Posts /wp-admin/edit.php3.37 ▲0.0152.89 ▼4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.89 ▼18.55
Media Library /wp-admin/upload.php3.24 ▲0.0140.70 ▲3.30

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Spring
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.27 ▼0.081.67 ▲0.0942.55 ▼1.19
Dashboard /wp-admin2,198 ▲245.57 ▼0.0187.60 ▼13.7038.76 ▼5.18
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0040.33 ▲2.9836.66 ▲1.25
Add New Post /wp-admin/post-new.php6,198 ▲4,67019.10 ▼4.01924.24 ▲277.9751.00 ▼4.98
Media Library /wp-admin/upload.php1,394 ▼04.25 ▲0.03102.70 ▲6.0143.86 ▲3.52

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gospring/npblock.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (where can user find the gospring block.), #2 (when user paste the quiz url.), #3 (when user done with the embeding.)
You can look at the official readme.txt

gospring/npblock.php 77% from 13 tests

"Spring" version 6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gospring.php" instead of "npblock.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin28,455 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON40028,037
JavaScript491243274
Sass25271
CSS291960
PHP272313

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin