74% typofixer

Code Review | TypoFixer

WordPress plugin TypoFixer scored 74% from 54 tests.

About plugin

  • Plugin page: typofixer
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2.3
  • WordPress version: 5.8.1
  • First release: Nov 2, 2019
  • Latest release: Nov 8, 2019
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: asafma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 294 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by TypoFixer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1439.49 ▲17.29
Dashboard /wp-admin3.09 ▲0.0346.68 ▲1.88
Posts /wp-admin/edit.php3.14 ▲0.0339.10 ▼5.69
Add New Post /wp-admin/post-new.php5.45 ▲0.0187.85 ▼583.95
Media Library /wp-admin/upload.php3.03 ▲0.0336.02 ▲0.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: 1 new table, 1 new option
New tables
wp_typos
New WordPress options
tpfx_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for TypoFixer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲13215.82 ▼0.119.90 ▲0.3550.94 ▼2.68
Dashboard /wp-admin2,987 ▲565.87 ▼0.09139.60 ▼12.10110.62 ▼6.49
Posts /wp-admin/edit.php2,759 ▲202.70 ▼0.0062.96 ▼4.3186.04 ▼12.92
Add New Post /wp-admin/post-new.php1,696 ▲19618.87 ▲0.09366.36 ▼8.01107.78 ▼0.92
Media Library /wp-admin/upload.php1,827 ▲205.03 ▲0.05148.51 ▲3.17121.87 ▲1.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_typos
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • tpfx_db_version

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/typofixer/typofixer.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: writing, proofread, spell check

typofixer/typofixer.php 92% from 13 tests

The entry point to "TypoFixer" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin158 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11725158

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin