79% convert-emoticons-font-awesome

Code Review | Convert Emoticons Font Awesome

WordPress plugin Convert Emoticons Font Awesome scored79%from 54 tests.

About plugin

  • Plugin page: convert-emoticons...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Mar 15, 2020
  • Latest release: Apr 4, 2020
  • Number of updates: 16
  • Update frequency: every 1.6 days
  • Top authors: gallagherwebsitedesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 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.04MB] [CPU: ▼5.59ms] Passed 4 tests

A check of server-side resources used by Convert Emoticons Font Awesome
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.43 ▲5.18
Dashboard /wp-admin3.35 ▲0.0453.62 ▼0.84
Posts /wp-admin/edit.php3.40 ▲0.0449.69 ▼3.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.88 ▼22.07
Media Library /wp-admin/upload.php3.27 ▲0.0439.24 ▲3.87

Server storage [IO: ▲0.02MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Convert Emoticons Font Awesome: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.121.93 ▲0.3543.53 ▲1.91
Dashboard /wp-admin2,196 ▲165.54 ▼0.0286.86 ▼11.6437.99 ▼2.27
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0335.05 ▼1.8834.90 ▲0.24
Add New Post /wp-admin/post-new.php1,531 ▲523.19 ▼0.27673.97 ▼7.4353.76 ▲2.69
Media Library /wp-admin/upload.php1,401 ▲14.20 ▼0.02100.27 ▼6.4044.92 ▼3.54
Convert Emoticons Font Awesome /wp-admin/convert-emoticons-font-awesome.php260.420.1014.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 | 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
Please take a closer look at the following
  • 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/convert-emoticons-font-awesome/convert-emoticons-font-awesome.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/convert-emoticons-font-awesome.php
    • > Network (severe)
    wp-admin/convert-emoticons-font-awesome.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
4 plugin tags: fontawesome, emoticon, font awesome, emoticons

convert-emoticons-font-awesome/convert-emoticons-font-awesome.php Passed 13 tests

Analyzing the main PHP file in "Convert Emoticons Font Awesome" version 1.0
41 characters long description:
Converts emoticons to Font Awesome icons.

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
Success! There were no dangerous files found in this plugin165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1634165

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin