89% classipress-sms

Code Review | Classipress SMS

WordPress plugin Classipress SMS scored 89% from 54 tests.

About plugin

  • Plugin page: classipress-sms
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2014
  • Latest release: Aug 13, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: tandubhai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,646 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Classipress SMS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.14 ▼3.22
Dashboard /wp-admin3.36 ▲0.0544.02 ▼6.46
Posts /wp-admin/edit.php3.41 ▲0.0545.62 ▲1.97
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.42 ▼8.14
Media Library /wp-admin/upload.php3.28 ▲0.0533.13 ▲1.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
classipresssms-options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Classipress SMS: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.19 ▼1.192.02 ▲0.3543.02 ▼1.00
Dashboard /wp-admin2,225 ▲375.82 ▼0.0697.82 ▼13.0637.89 ▼5.03
Posts /wp-admin/edit.php2,105 ▲132.05 ▲0.0234.30 ▼2.0733.73 ▲2.12
Add New Post /wp-admin/post-new.php1,549 ▲2123.13 ▲4.59665.78 ▲53.6450.04 ▼3.00
Media Library /wp-admin/upload.php1,398 ▲164.18 ▼0.0095.49 ▲2.1741.34 ▲1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • classipresssms-options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (SMS Text message form), #2 (Setting Textmarketer), #3 (Setting Sendhub)
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

classipress-sms/classipresssms.php 92% from 13 tests

The main PHP file in "Classipress SMS" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("classipress-sms.php" instead of "classipresssms.php")

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
Success! There were no dangerous files found in this plugin474 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP712332474

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.20
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png31.63KB12.86KB▼ 59.36%
screenshot-3.png30.44KB12.48KB▼ 58.98%
app-pencil.png0.52KB0.57KB0.00%
screenshot-1.png8.67KB4.16KB▼ 51.99%