90% wordpresscom-stats-smiley-remover

Code Review | WordPress.com Stats Smiley Remover

WordPress plugin WordPress.com Stats Smiley Remover scored90%from 54 tests.

About plugin

  • Plugin page: wordpresscom-stat...
  • Plugin version: 15.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Mar 25, 2009
  • Latest release: Jan 15, 2016
  • Number of updates: 66
  • Update frequency: every 37.7 days
  • Top authors: christopherross (98.48%)meaganhanes (3.03%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /77,788 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.21ms] Passed 4 tests

Analyzing server-side resources used by WordPress.com Stats Smiley Remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.39 ▲1.03
Dashboard /wp-admin3.35 ▲0.0445.07 ▼2.60
Posts /wp-admin/edit.php3.40 ▲0.0446.12 ▼0.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.22 ▲1.11
Media Library /wp-admin/upload.php3.27 ▲0.0435.37 ▲2.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress.com Stats Smiley Remover
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.25 ▼0.141.90 ▲0.1143.89 ▼1.00
Dashboard /wp-admin2,198 ▲185.57 ▼0.0490.29 ▲3.8443.25 ▲1.07
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.1539.19 ▲4.5934.97 ▲3.62
Add New Post /wp-admin/post-new.php1,526 ▼223.36 ▲0.09692.65 ▲21.7254.53 ▼1.63
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.0395.53 ▼3.8241.83 ▼4.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: remove, smiley, stats, smiley face, wordpresscom stats...

wordpresscom-stats-smiley-remover/wordpresscom-stats-smiley-remover.php Passed 13 tests

The entry point to "WordPress.com Stats Smiley Remover" version 15.01 is a PHP file that has certain tags in its header comment area
139 characters long description:
The WordPress.com Stats Smiley Remover quickly removes the smiley face placed in the footer of your site by the WordPress.com Stats plugin.

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
No dangerous file extensions were detected404 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File468144218
PHP3118162144
CSS2251242

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin