78% scm-gateway

Code Review | Completo

WordPress plugin Completo scored78%from 54 tests.

About plugin

  • Plugin page: scm-gateway
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-1.1.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Dec 11, 2018
  • Number of updates: 10
  • Update frequency: every 32.0 days
  • Top authors: completo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /549 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▲1.32ms] Passed 4 tests

Analyzing server-side resources used by Completo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.45 ▲2.12
Dashboard /wp-admin3.35 ▲0.0550.72 ▲1.11
Posts /wp-admin/edit.php3.40 ▲0.0551.04 ▲2.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.92 ▼0.11
Media Library /wp-admin/upload.php3.28 ▲0.0540.70 ▲4.14
SCM Gateway /wp-admin/options-general.php?page=scm_gateway3.2232.16

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Completo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.101.76 ▼0.2145.68 ▼3.26
Dashboard /wp-admin2,199 ▲285.64 ▼0.0495.50 ▼8.5741.81 ▼5.50
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0736.15 ▼1.9933.62 ▼3.96
Add New Post /wp-admin/post-new.php1,529 ▲123.09 ▼0.10677.62 ▲3.6566.66 ▲12.15
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0599.36 ▼13.8446.09 ▼0.79
SCM Gateway /wp-admin/options-general.php?page=scm_gateway7601.9924.7522.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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=scm_gateway
    • > Warning in wp-content/plugins/scm-gateway/classes/class.scm_gateway.php+48
    include(wp-content/plugins/scm-gateway/pages/admin/settings.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=scm_gateway
    • > Warning in wp-content/plugins/scm-gateway/classes/class.scm_gateway.php+48
    include(): Failed opening 'wp-content/plugins/scm-gateway/pages/admin/settings.php' for inclusion (include_path='.:/usr/share/php')

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scm-gateway/scm-gateway.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

scm-gateway/scm-gateway.php Passed 13 tests

The entry point to "Completo" version 1.1.1 is a PHP file that has certain tags in its header comment area
66 characters long description:
Provides the functioanlity to connect your blog onWP to SCM system

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
There were no executable files found in this plugin256 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25329256

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin