84% gp-srt

Code Review | GP SRT Support

WordPress plugin GP SRT Support scored84%from 54 tests.

About plugin

  • Plugin page: gp-srt
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jul 2, 2016
  • Latest release: Apr 17, 2023
  • Number of updates: 18
  • Update frequency: every 137.8 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by GP SRT Support
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.73 ▼3.62
Dashboard /wp-admin3.31 ▼0.0346.30 ▼18.19
Posts /wp-admin/edit.php3.36 ▲0.0143.46 ▼2.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.61 ▼10.93
Media Library /wp-admin/upload.php3.23 ▲0.0135.71 ▲4.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GP SRT Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.371.79 ▼0.0937.78 ▼4.93
Dashboard /wp-admin2,195 ▲155.63 ▼0.0491.74 ▼2.7242.10 ▼1.64
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0235.77 ▼2.8630.52 ▼9.00
Add New Post /wp-admin/post-new.php1,526 ▼1423.09 ▲5.27606.84 ▼17.2475.27 ▲11.44
Media Library /wp-admin/upload.php1,403 ▼04.29 ▲0.10103.97 ▼0.1440.69 ▲0.01

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× 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/gp-srt/gp-srt.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GP_Format' not found in wp-content/plugins/gp-srt/format_srt.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: glotpress, translation, srt

gp-srt/gp-srt.php Passed 13 tests

Analyzing the main PHP file in "GP SRT Support" version 0.5
34 characters long description:
Add SRT file support to GlotPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP241117107

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.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

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