84% wp-sarahspell

Code Review | WP-SARAHSPELL

WordPress plugin WP-SARAHSPELL scored84%from 54 tests.

About plugin

  • Plugin page: wp-sarahspell
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2020
  • Latest release: Nov 25, 2020
  • Number of updates: 8
  • Update frequency: every 0.9 days
  • Top authors: arabspellchecker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP-SARAHSPELL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.68 ▲3.29
Dashboard /wp-admin3.31 ▲0.0050.78 ▼6.18
Posts /wp-admin/edit.php3.36 ▲0.0049.91 ▼1.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.86 ▼13.68
Media Library /wp-admin/upload.php3.23 ▲0.0032.33 ▼1.29

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP-SARAHSPELL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.451.67 ▼0.0442.25 ▼1.96
Dashboard /wp-admin2,195 ▲155.61 ▼0.0086.93 ▼14.7039.63 ▼7.94
Posts /wp-admin/edit.php2,103 ▲61.94 ▼0.0436.31 ▼2.1135.19 ▼1.03
Add New Post /wp-admin/post-new.php1,536 ▲1022.96 ▼0.66641.02 ▲8.0656.94 ▲2.69
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.08100.84 ▼0.6043.87 ▲2.69

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-sarahspell/wp-sarahspell.php:127

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

wp-sarahspell/wp-sarahspell.php Passed 13 tests

"WP-SARAHSPELL" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Adds support for Arabic Language Spell Checking

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
Success! There were no dangerous files found in this plugin129 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14422121
CSS1107
JavaScript1001

PHP code Passed 2 tests

An short overview of 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.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ 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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin