83% trustactivity

Code Review | TrustActivity - Recent Sales and SignUp Popups (Fake Notifications)

WordPress plugin TrustActivity - Recent Sales and SignUp Popups (Fake Notifications) scored83%from 54 tests.

About plugin

  • Plugin page: trustactivity
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Nov 13, 2018
  • Latest release: Mar 5, 2019
  • Number of updates: 8
  • Update frequency: every 14.1 days
  • Top authors: trustactivity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /923 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.33ms] Passed 4 tests

A check of server-side resources used by TrustActivity - Recent Sales and SignUp Popups (Fake Notifications)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.37 ▼0.54
Dashboard /wp-admin3.32 ▼0.0253.97 ▼12.76
Posts /wp-admin/edit.php3.37 ▲0.0248.38 ▼5.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.83 ▼6.98
Media Library /wp-admin/upload.php3.24 ▲0.0234.42 ▼4.20
TrustActivity /wp-admin/options-general.php?page=trust_activity3.2135.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for TrustActivity - Recent Sales and SignUp Popups (Fake Notifications)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.26 ▼1.491.70 ▼0.3943.99 ▲0.42
Dashboard /wp-admin2,226 ▲385.84 ▲0.0599.68 ▼17.5940.61 ▼2.22
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.0138.31 ▲3.9737.78 ▼0.14
Add New Post /wp-admin/post-new.php1,552 ▲3322.92 ▼0.23643.20 ▼47.8972.15 ▲19.25
Media Library /wp-admin/upload.php1,408 ▲204.29 ▲0.11103.82 ▲0.8343.95 ▼1.76
TrustActivity /wp-admin/options-general.php?page=trust_activity8052.0625.7129.48

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
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/trustactivity/trustactivity.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (TrustActivity Dashboard), #2 (Trustactivity.com website), #3 (Contact List), #4 (Proof Notifications samples)
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can look at the official readme.txt

trustactivity/trustactivity.php 92% from 13 tests

The main file in "TrustActivity - Recent Sales and SignUp Popups (Fake Notifications)" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 183 characters long)

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
There were no executable files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171276

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.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 were not PNG files found in your plugin