84% quotmarks-replacer

Code Review | Quotmarks Replacer

WordPress plugin Quotmarks Replacer scored84%from 54 tests.

About plugin

  • Plugin page: quotmarks-replacer
  • Plugin version: 2.6.21
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.8
  • WordPress version: 6.3.1
  • First release: Jun 14, 2009
  • Latest release: Aug 11, 2021
  • Number of updates: 103
  • Update frequency: every 49.4 days
  • Top authors: Sparanoid (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /22,724 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.00MB] [CPU: ▲0.16ms] Passed 4 tests

A check of server-side resources used by Quotmarks Replacer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▼0.0039.24 ▲0.24
Dashboard /wp-admin3.35 ▲0.0049.67 ▼0.47
Posts /wp-admin/edit.php3.40 ▼0.0051.17 ▲2.21
Add New Post /wp-admin/post-new.php5.93 ▼0.0089.20 ▼1.36
Media Library /wp-admin/upload.php3.27 ▼0.0036.05 ▲4.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quotmarks Replacer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.71 ▼0.0842.64 ▼1.08
Dashboard /wp-admin2,198 ▲275.62 ▲0.0993.59 ▲0.8541.28 ▼1.69
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0038.24 ▲0.5034.08 ▼7.12
Add New Post /wp-admin/post-new.php1,526 ▼023.76 ▲0.11689.02 ▲30.8457.42 ▼13.81
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.01106.31 ▼2.5146.55 ▼1.00

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/quotmarks-replacer/quotmarks-replacer.php:48

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (27 tag instead of maximum 10)
Please take inspiration from this readme.txt

quotmarks-replacer/quotmarks-replacer.php Passed 13 tests

Analyzing the main PHP file in "Quotmarks Replacer" version 2.6.21
121 characters long description:
Quotmarks Replacer disables wptexturize function that keeps all quotation marks and suspension points in half-width form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin20 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP262420

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin