84% remove-this-wpcom-smiley

Code Review | Remove this WPcom Smiley

WordPress plugin Remove this WPcom Smiley scored84%from 54 tests.

About plugin

  • Plugin page: remove-this-wpcom...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2+
  • WordPress version: 6.3.1
  • First release: Jul 6, 2012
  • Latest release: Jul 7, 2012
  • Number of updates: 22
  • Update frequency: every 6.3 days
  • Top authors: elmoo32 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,243 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.00MB] [CPU: ▼2.25ms] Passed 4 tests

An overview of server-side resources used by Remove this WPcom Smiley
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.39 ▼1.71
Dashboard /wp-admin3.31 ▲0.0052.11 ▲4.35
Posts /wp-admin/edit.php3.36 ▲0.0043.92 ▼4.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.09 ▼4.18
Media Library /wp-admin/upload.php3.23 ▲0.0035.12 ▲1.57

Server storage [IO: ▲0.00MB] [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
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Remove this WPcom Smiley
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.78 ▲0.401.69 ▼0.0443.35 ▲2.13
Dashboard /wp-admin2,209 ▲215.91 ▲1.03104.07 ▼6.7944.85 ▲4.41
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0133.89 ▼9.8036.30 ▼0.15
Add New Post /wp-admin/post-new.php1,534 ▲123.04 ▼0.44648.12 ▼2.9756.86 ▲5.30
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0593.85 ▼1.4743.94 ▼1.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-this-wpcom-smiley/remove-this-wpcom-smiley.php:35

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 97% from 29 tests

readme.txt 94% 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 to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === remove-this-wpcom-smiley === )
You can look at the official readme.txt

remove-this-wpcom-smiley/remove-this-wpcom-smiley.php Passed 13 tests

"Remove this WPcom Smiley" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
This plugin removes the wordpress.com stats smiley, but unlike many plugins in a better, more secure way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17236

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.00
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin