84% classic-smilies

Code Review | Classic Smilies

WordPress plugin Classic Smilies scored84%from 54 tests.

About plugin

  • Plugin page: classic-smilies
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Jul 9, 2009
  • Latest release: Jan 6, 2016
  • Number of updates: 9
  • Update frequency: every 263.5 days
  • Top authors: Otto42 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

300+ active /8,813 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
Installer ran successfully

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

A check of server-side resources used by Classic Smilies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.47 ▼0.07
Dashboard /wp-admin3.32 ▼0.0343.60 ▼26.24
Posts /wp-admin/edit.php3.37 ▲0.0147.77 ▲1.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.62 ▼4.94
Media Library /wp-admin/upload.php3.24 ▲0.0133.29 ▼4.03

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Classic Smilies
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.80 ▲0.241.46 ▼0.2044.69 ▲5.49
Dashboard /wp-admin2,206 ▲154.88 ▼0.93108.53 ▼0.5841.53 ▼1.03
Posts /wp-admin/edit.php2,092 ▼01.97 ▼0.0341.37 ▲3.4034.30 ▲0.00
Add New Post /wp-admin/post-new.php1,514 ▼1917.50 ▼6.05652.35 ▼33.6962.15 ▲2.83
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0595.34 ▼4.2842.54 ▼0.41

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/classic-smilies/classic_smilies.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: classic, smilies

classic-smilies/classic_smilies.php 92% from 13 tests

This is the main PHP file of "Classic Smilies" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("classic-smilies.php" instead of "classic_smilies.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181771

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected