89% wp-social-media-monitoring

Code Review | Social-Media-Monitoring

WordPress plugin Social-Media-Monitoring scored 89% from 54 tests.

About plugin

  • Plugin page: wp-social-media-m...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2012
  • Latest release: Nov 20, 2012
  • Number of updates: 4
  • Update frequency: every 7.8 days
  • Top authors: alreadycoded.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 741 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
Installer ran successfully

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

Server-side resources used by Social-Media-Monitoring
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.18 ▼3.74
Dashboard /wp-admin3.31 ▲0.0145.07 ▼5.58
Posts /wp-admin/edit.php3.36 ▲0.0044.91 ▼7.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.79 ▼14.52
Media Library /wp-admin/upload.php3.23 ▲0.0033.46 ▲0.17
Social Media Monitoring /wp-admin/options-general.php?page=social_media_monitoring3.2029.57

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social-Media-Monitoring
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.68 ▼0.611.75 ▼0.3440.15 ▼5.47
Dashboard /wp-admin2,207 ▲195.83 ▼0.05106.10 ▲4.4540.06 ▼7.94
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0834.78 ▼6.8135.91 ▼0.44
Add New Post /wp-admin/post-new.php1,536 ▼623.35 ▲5.18699.02 ▲58.3951.65 ▼12.28
Media Library /wp-admin/upload.php1,392 ▲104.20 ▼0.0698.59 ▼1.0241.90 ▲0.02
Social Media Monitoring /wp-admin/options-general.php?page=social_media_monitoring1,4512.0523.9622.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (2.) image missing
  • Stable tag: Empty value
  • Donate link: Invalid url: ""
The official readme.txt might help

wp-social-media-monitoring/smms.php 92% from 13 tests

The main PHP file in "Social-Media-Monitoring" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-social-media-monitoring.php" instead of "smms.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
No dangerous file extensions were detected242 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15118242

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin