10% ourwebsms

Code Review | ourwebsms

WordPress plugin ourwebsms scored10%from 54 tests.

About plugin

  • Plugin page: ourwebsms
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: Dec 4, 2015
  • Number of updates: 6
  • Update frequency: every 1.8 days
  • Top authors: ourweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /543 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/ourwebsms/ourwebsms.php+167
    syntax error, unexpected end of file

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

This is a short check of server-side resources used by ourwebsms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.10 ▼6.09
Dashboard /wp-admin3.31 ▲0.0048.27 ▼14.27
Posts /wp-admin/edit.php3.36 ▲0.0053.87 ▲0.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.60 ▼3.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.15 ▼3.86

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ourwebsms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.411.64 ▼0.6644.71 ▲4.89
Dashboard /wp-admin2,192 ▲125.51 ▼0.1486.51 ▼2.0038.67 ▼5.34
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0040.32 ▲0.8535.93 ▼4.39
Add New Post /wp-admin/post-new.php1,526 ▼322.99 ▼0.25646.81 ▼8.3955.46 ▼8.89
Media Library /wp-admin/upload.php1,394 ▼34.18 ▼0.0195.30 ▼3.9244.50 ▲1.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/ourwebsms/ourwebsms.php on line 167

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ourwebsms === )
You can look at the official readme.txt

ourwebsms/ourwebsms.php Passed 13 tests

"ourwebsms" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
A plugin that uses ourwebsms gateway. Please log in to www.ourwebsms.com to set up an account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13612119

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.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%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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