83% wfs-voanews-translator

Code Review | WFS VOANews translator

WordPress plugin WFS VOANews translator scored 83% from 54 tests.

About plugin

  • Plugin page: wfs-voanews-trans...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Dec 25, 2013
  • Number of updates: 8
  • Update frequency: every 7.9 days
  • Top authors: webfacescript (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.95ms] Passed 4 tests

An overview of server-side resources used by WFS VOANews translator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.17 ▲0.74
Dashboard /wp-admin3.32 ▲0.0147.22 ▼5.81
Posts /wp-admin/edit.php3.37 ▲0.0144.99 ▲2.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.98 ▼13.10
Media Library /wp-admin/upload.php3.24 ▲0.0137.56 ▲4.41

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WFS VOANews translator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.60 ▼1.055.13 ▲3.4843.32 ▼5.34
Dashboard /wp-admin2,224 ▲365.86 ▲0.98109.05 ▲2.3080.03 ▲39.64
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0334.82 ▼2.6336.60 ▲5.23
Add New Post /wp-admin/post-new.php1,680 ▲15822.22 ▼0.84681.27 ▲6.3754.97 ▼4.18
Media Library /wp-admin/upload.php1,403 ▲154.24 ▼0.06106.62 ▼3.8643.40 ▼2.39

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

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

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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 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/wfs-voanews-translator/wfs_voanews_translator.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wfs-voanews-translator === )
  • Screenshots: Add images for these screenshots: #1 (Admin panel), #2 (Demo)
You can take inspiration from this readme.txt

wfs-voanews-translator/wfs_voanews_translator.php 92% from 13 tests

"WFS VOANews translator" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wfs-voanews-translator.php" instead of "wfs_voanews_translator.php")

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
Everything looks great! No dangerous files found in this plugin481 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36455329
PHP31918152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png15.09KB10.61KB▼ 29.73%
screenshot-2.png39.07KB21.75KB▼ 44.34%
assets/images/menu_icon.png2.73KB0.08KB▼ 97.00%