10% glitterific-translator

Code Review | Glitterific Comment Translator

WordPress plugin Glitterific Comment Translator scored 10% from 54 tests.

About plugin

  • Plugin page: glitterific-trans...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: Sep 2, 2015
  • Number of updates: 10
  • Update frequency: every 70.8 days
  • Top authors: cvedovini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 950 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/glitterific-translator/glitterific-translator.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; GlitterificTranslator has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼48.42ms] Passed 4 tests

Analyzing server-side resources used by Glitterific Comment Translator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.397.27 ▼32.60
Dashboard /wp-admin2.09 ▼1.217.74 ▼36.08
Posts /wp-admin/edit.php2.09 ▼1.276.00 ▼37.91
Add New Post /wp-admin/post-new.php2.09 ▼3.806.20 ▼87.09
Media Library /wp-admin/upload.php2.09 ▼1.145.85 ▼30.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Glitterific Comment Translator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.301.66 ▼0.0539.73 ▼8.42
Dashboard /wp-admin2,209 ▲184.85 ▼1.0598.64 ▼2.6838.68 ▼5.56
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0538.95 ▲1.7435.51 ▲0.35
Add New Post /wp-admin/post-new.php1,539 ▲1923.34 ▲0.06656.64 ▼16.7954.78 ▼3.26
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.05100.39 ▼2.2945.96 ▼1.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/glitterific-translator/glitterific-translator.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; GlitterificTranslator has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glitterific-translator/glitterific-translator.php:85

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: patriarchy, fanmail, glitterific, translator, comments...

glitterific-translator/glitterific-translator.php Passed 13 tests

Analyzing the main PHP file in "Glitterific Comment Translator" version 0.1
52 characters long description:
Automatically turns hate comments into fan comments.

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

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin