84% bdlookup

Code Review | Quick English Dictionary Meaning

WordPress plugin Quick English Dictionary Meaning scored84%from 54 tests.

About plugin

  • Plugin page: bdlookup
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.3.0
  • WordPress version: 6.3.1
  • First release: Sep 10, 2013
  • Latest release: Oct 2, 2015
  • Number of updates: 12
  • Update frequency: every 67.1 days
  • Top authors: beedictionary (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,092 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.60MB] [CPU: ▼1.82ms] Passed 4 tests

Analyzing server-side resources used by Quick English Dictionary Meaning
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /7.31 ▲3.8542.35 ▼3.40
Dashboard /wp-admin3.31 ▲0.0147.44 ▼1.41
Posts /wp-admin/edit.php3.36 ▲0.0145.27 ▼2.11
Add New Post /wp-admin/post-new.php8.27 ▲2.3991.46 ▼0.37
Media Library /wp-admin/upload.php3.23 ▲0.0036.96 ▲1.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Quick English Dictionary Meaning
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6714.43 ▲0.051.74 ▼0.0243.61 ▼5.70
Dashboard /wp-admin2,209 ▲184.87 ▼0.01100.75 ▼19.2541.72 ▼6.08
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0534.10 ▼3.2035.21 ▲0.27
Add New Post /wp-admin/post-new.php1,533 ▲1323.24 ▲0.19675.12 ▲6.1657.34 ▲1.64
Media Library /wp-admin/upload.php1,382 ▼94.21 ▼0.0898.89 ▼10.2643.17 ▼4.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bdlookup/bdlookup.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

bdlookup/bdlookup.php Passed 13 tests

The main PHP script in "Quick English Dictionary Meaning" version 0.9.0 is automatically included on every request by WordPress
89 characters long description:
This will give a small temporary popup with meaning of the difficult and confusing words.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS120176
PHP152315

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin