83% wpstoreapp-spellcheck

Code Review | WPStore.app 中文语法检查

WordPress plugin WPStore.app 中文语法检查 scored 83% from 54 tests.

About plugin

  • Plugin page: wpstoreapp-spellc...
  • Plugin version: 0.0.5
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 26, 2022
  • Latest release: Feb 27, 2022
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: bestony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,547 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.03MB] [CPU: ▼5.73ms] Passed 4 tests

Analyzing server-side resources used by WPStore.app 中文语法检查
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.53 ▼4.86
Dashboard /wp-admin3.34 ▲0.0444.68 ▼7.77
Posts /wp-admin/edit.php3.46 ▲0.1047.56 ▲4.19
Add New Post /wp-admin/post-new.php5.87 ▼0.0184.66 ▼9.06
Media Library /wp-admin/upload.php3.27 ▲0.0432.87 ▼1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPStore.app 中文语法检查
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.74 ▼0.581.67 ▼0.2041.71 ▼1.76
Dashboard /wp-admin2,203 ▲155.81 ▲0.0099.75 ▼5.8238.28 ▼11.22
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0442.19 ▲8.0434.18 ▲0.56
Add New Post /wp-admin/post-new.php1,528 ▲823.56 ▲0.30618.62 ▼50.7558.77 ▲9.03
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0194.78 ▼0.0945.75 ▼0.10

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPStoreApp\\SpellCheck\\add_action() in wp-content/plugins/wpstoreapp-spellcheck/WPStoreApp_Option.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: spellcheck, chinese

wpstoreapp-spellcheck/wpstore-spellcheck.php 77% from 13 tests

"WPStore.app 中文语法检查" version 0.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpstoreapp-spellcheck.php" instead of "wpstore-spellcheck.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
There were no executable files found in this plugin140 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP51819139
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.25
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods1392.86%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin