84% findwords

Code Review | Findwords

WordPress plugin Findwords scored84%from 54 tests.

About plugin

  • Plugin page: findwords
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 18, 2016
  • Latest release: Dec 21, 2016
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: aviket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /494 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.20ms] Passed 4 tests

Analyzing server-side resources used by Findwords
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.38 ▼1.59
Dashboard /wp-admin3.35 ▼0.0046.05 ▼12.80
Posts /wp-admin/edit.php3.40 ▲0.0446.11 ▼7.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.90 ▼23.37
Media Library /wp-admin/upload.php3.27 ▲0.0436.49 ▲1.22
Findwords Options /wp-admin/options-general.php?page=FindWordsplugin_options3.2428.69

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
FindWordsplugin-Settings
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Findwords
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17213.75 ▼0.6411.24 ▲9.5341.96 ▼6.55
Dashboard /wp-admin2,210 ▲195.83 ▲0.9595.47 ▼6.2539.33 ▲0.96
Posts /wp-admin/edit.php2,090 ▼22.05 ▲0.0436.92 ▲1.9532.81 ▲0.90
Add New Post /wp-admin/post-new.php1,536 ▲1723.15 ▼0.01675.36 ▲79.9364.11 ▲12.69
Media Library /wp-admin/upload.php1,392 ▲104.17 ▼0.0395.88 ▼4.1041.76 ▼1.97
Findwords Options /wp-admin/options-general.php?page=FindWordsplugin_options7902.0323.8025.50

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/findwords/findwords.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

findwords/findwords.php Passed 13 tests

"Findwords" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Plugin for showing all occurances of a word in the blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected7,206 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript166402736,624
HTML1283297
PHP36629210
CSS112057
JSON10014
Markdown1204

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/next-arrow-left.png2.63KB2.00KB▼ 24.11%
css/next-arrow-right.png2.65KB1.94KB▼ 27.01%