83% free-dictionary

Code Review | Free Dictionary

WordPress plugin Free Dictionary scored83%from 54 tests.

About plugin

  • Plugin page: free-dictionary
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2009
  • Latest release: Aug 18, 2017
  • Number of updates: 14
  • Update frequency: every 220.3 days
  • Top authors: gunebakan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /8,936 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Free Dictionary
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.13 ▼1.41
Dashboard /wp-admin3.31 ▼0.0346.21 ▼14.79
Posts /wp-admin/edit.php3.36 ▲0.0141.70 ▼6.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.09 ▼18.50
Media Library /wp-admin/upload.php3.24 ▲0.0134.90 ▲3.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_wpb_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Dictionary
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.181.74 ▲0.1043.47 ▲3.54
Dashboard /wp-admin2,206 ▲154.87 ▼0.03110.56 ▲6.4645.75 ▲7.43
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0732.63 ▼4.8336.24 ▲1.10
Add New Post /wp-admin/post-new.php1,533 ▲523.41 ▲5.07654.14 ▲52.6850.50 ▼1.11
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0493.91 ▼3.6943.28 ▲2.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_wpb_widget
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 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/free-dictionary/free-dictionary-org.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

free-dictionary/free-dictionary-org.php 85% from 13 tests

The primary PHP file in "Free Dictionary" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("free-dictionary.php" instead of "free-dictionary-org.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin69 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141947
XML10022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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