73% gmo-tinymce-smiley

Code Review | Plugin Name: GMO TinyMCE Smiley

WordPress plugin Plugin Name: GMO TinyMCE Smiley scored 73% from 54 tests.

About plugin

  • Plugin page: gmo-tinymce-smiley
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 5.8.1
  • First release: Oct 2, 2014
  • Latest release: Jan 29, 2016
  • Number of updates: 28
  • Update frequency: every 34.1 days
  • Top authors: Takeaki Nagashima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

This is a short check of server-side resources used by Plugin Name: GMO TinyMCE Smiley
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1634.68 ▲14.47
Dashboard /wp-admin2.78 ▼0.2826.87 ▼8.59
Posts /wp-admin/edit.php2.78 ▼0.3322.54 ▼16.55
Add New Post /wp-admin/post-new.php2.78 ▼2.6521.92 ▼692.27
Media Library /wp-admin/upload.php2.78 ▼0.2223.09 ▼10.52
TinyMCE Smiley /wp-admin/edit.php?page=gmo-tinymce-smiley2.7821.88

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Name: GMO TinyMCE Smiley
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲7815.93 ▲0.2712.36 ▲2.2545.93 ▼5.12
Dashboard /wp-admin2,974 ▲435.93 ▼0.14149.43 ▼3.84112.32 ▲1.07
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0081.73 ▲10.5884.90 ▼6.53
Add New Post /wp-admin/post-new.php1,688 ▲518.77 ▲0.28430.22 ▲40.10108.79 ▲0.27
Media Library /wp-admin/upload.php1,812 ▲55.02 ▲0.00143.95 ▼31.08113.84 ▼1.30
TinyMCE Smiley /wp-admin/edit.php?page=gmo-tinymce-smiley1,1072.3354.7071.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=gmo-tinymce-smiley
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× 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/gmo-tinymce-smiley/gmo-tinymce-smiley.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=gmo-tinymce-smiley
    • > Network (severe)
    wp-content/plugins/gmo-tinymce-smiley/css/gmo-tinymce-smiley-update.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=gmo-tinymce-smiley
    • > Network (severe)
    wp-content/plugins/gmo-tinymce-smiley/css/gmo-admin-plugin.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?page=gmo-tinymce-smiley
    • > Network (severe)
    wp-content/plugins/gmo-tinymce-smiley/images/bnr_themes.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?page=gmo-tinymce-smiley
    • > Network (severe)
    wp-content/plugins/gmo-tinymce-smiley/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?page=gmo-tinymce-smiley
    • > Network (severe)
    wp-content/plugins/gmo-tinymce-smiley/images/bnr_plugins.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: GMO TinyMCE Smiley === )
You can look at the official readme.txt

gmo-tinymce-smiley/gmo-tinymce-smiley.php Passed 13 tests

The main PHP script in "Plugin Name: GMO TinyMCE Smiley" version 1.2 is automatically included on every request by WordPress
56 characters long description:
This is a plug-in that can be inserted emoticons easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin261 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP12211140
JavaScript25069
PO File13323
CSS31922
XML1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot.png76.16KB38.30KB▼ 49.72%
images/ico_link.png1.00KB0.21KB▼ 79.07%
images/wpshop_bnr_themes.png13.39KB5.79KB▼ 56.74%
images/wpshop_logo.png7.22KB5.91KB▼ 18.12%
images/wpshop_bnr_plugins.png13.29KB5.68KB▼ 57.23%