62% ultimateadminsms

Code Review | UltimateAdminSms

WordPress plugin UltimateAdminSms scored62%from 54 tests.

About plugin

  • Plugin page: ultimateadminsms
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.1.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2012
  • Latest release: Dec 6, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: rahul77758 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,133 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.19MB] [CPU: ▼38.53ms] Passed 4 tests

Server-side resources used by UltimateAdminSms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6814.12 ▼23.53
Dashboard /wp-admin2.82 ▼0.4816.65 ▼30.71
Posts /wp-admin/edit.php2.82 ▼0.5319.25 ▼25.86
Add New Post /wp-admin/post-new.php2.82 ▼3.0717.69 ▼74.01
Media Library /wp-admin/upload.php2.82 ▼0.4118.94 ▼13.54
SMS Settings /wp-admin/admin.php?page=Settings2.8217.45
Send SMS /wp-admin/admin.php?page=ultimateadminsms/UltimateAdminSms.php2.8216.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for UltimateAdminSms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.90 ▼0.708.25 ▲6.5343.72 ▲3.07
Dashboard /wp-admin2,228 ▲405.88 ▲0.8595.99 ▼5.7083.87 ▲39.38
Posts /wp-admin/edit.php2,125 ▲362.01 ▼0.1034.60 ▼0.5434.14 ▼4.84
Add New Post /wp-admin/post-new.php1,696 ▲15022.63 ▲4.15772.38 ▲127.5559.73 ▲9.61
Media Library /wp-admin/upload.php1,425 ▲404.20 ▲0.02105.08 ▼1.3346.76 ▲2.69
SMS Settings /wp-admin/admin.php?page=Settings1,1242.1525.0528.40
Send SMS /wp-admin/admin.php?page=ultimateadminsms/UltimateAdminSms.php9672.0225.1242.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_usermeta is deprecated since version 3.0.0! Use get_user_meta() instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% 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)
Almost there, just fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ultimateadminsms/UltimateAdminSms.php
    • > User deprecated in wp-includes/functions.php+5453
    Function get_usermeta is deprecated since version 3.0.0! Use get_user_meta() instead.
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ultimateadminsms/UltimateAdminSms.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimateadminsms/UltimateAdminSms.php:36

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ultimateadminsms/UltimateAdminSms.php
    • > Network (severe)
    wp-content/plugins%20/UltimateAdminSms/checkLength.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ultimateadminsms/UltimateAdminSms.php
    • > Network (severe)
    wp-content/plugins/UltimateAdminSms/ultimateSms.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

ultimateadminsms/UltimateAdminSms.php 85% from 13 tests

"UltimateAdminSms" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 277 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimateadminsms.php" instead of "UltimateAdminSms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin563 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24851337
JavaScript192226

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.39
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%
Functions19
▷ Named functions19100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ultimateSms.png3.27KB0.59KB▼ 82.08%