84% at-you

Code Review | @You

WordPress plugin @You scored 84% from 54 tests.

About plugin

  • Plugin page: at-you
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Mar 21, 2014
  • Number of updates: 20
  • Update frequency: every 0.1 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,044 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by @You
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.67 ▼6.31
Dashboard /wp-admin3.32 ▲0.0245.04 ▼5.60
Posts /wp-admin/edit.php3.37 ▲0.0148.14 ▼0.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.72 ▼5.81
Media Library /wp-admin/upload.php3.24 ▲0.0140.96 ▲7.42
@You /wp-admin/options-general.php?page=at-you-options3.2839.50

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
widget_recent-posts
at_you_comments_content
widget_recent-comments
at_you_post_content
widget_theysaidso_widget
at_you_post_title
db_upgraded
theysaidso_admin_options
at_you_comments_title

Browser metrics Passed 4 tests

This is an overview of browser requirements for @You
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.83 ▲0.541.76 ▼0.0338.59 ▼3.66
Dashboard /wp-admin2,207 ▲225.81 ▼0.2394.44 ▼9.0839.39 ▼3.15
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0239.54 ▼2.6734.80 ▼0.52
Add New Post /wp-admin/post-new.php1,545 ▲2318.63 ▼4.37674.56 ▼7.8359.82 ▲8.68
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.0197.68 ▼3.8543.90 ▼3.59
@You /wp-admin/options-general.php?page=at-you-options1,9988.31158.5579.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • at_you_post_title
    • at_you_comments_content
    • widget_theysaidso_widget
    • at_you_post_content
    • at_you_comments_title
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/at-you/options.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/at-you/at-you.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: twitter, comments, at

at-you/at-you.php Passed 13 tests

The main PHP file in "@You" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Allow visitors @ others in the comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,474 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript49113952
PHP24525242
PO File24848236
CSS20044

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin