74% smart-quotes

Code Review | Smart Quotes

WordPress plugin Smart Quotes scored74%from 54 tests.

About plugin

  • Plugin page: smart-quotes
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.6
  • WordPress version: 6.3.1
  • First release: Dec 22, 2011
  • Latest release: Apr 12, 2013
  • Number of updates: 13
  • Update frequency: every 36.7 days
  • Top authors: tfnab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,779 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.89MB] [CPU: ▼30.73ms] Passed 4 tests

This is a short check of server-side resources used by Smart Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.31 ▲0.95
Dashboard /wp-admin3.05 ▼0.2528.16 ▼23.83
Posts /wp-admin/edit.php3.05 ▼0.3031.14 ▼19.80
Add New Post /wp-admin/post-new.php3.05 ▼2.8327.28 ▼72.46
Media Library /wp-admin/upload.php3.05 ▼0.1827.08 ▼6.82

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/smart-quotes/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Smart Quotes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.33 ▼1.252.44 ▲0.6344.99 ▲3.00
Dashboard /wp-admin2,221 ▲214.89 ▲0.02111.87 ▲4.8239.30 ▼4.63
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0240.30 ▲0.4836.62 ▲0.55
Add New Post /wp-admin/post-new.php1,546 ▲1523.30 ▲0.22673.39 ▲73.4161.16 ▲16.49
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.00100.88 ▲1.3643.94 ▲1.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method tfnab_smart_quotes::admin_init() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-quotes/smart-quotes.php:67

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wptexturize, quotes, curly, smart quotes, curly quotes

smart-quotes/smart-quotes.php 92% from 13 tests

Analyzing the main PHP file in "Smart Quotes" version 0.4
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 835 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11662105
PO File1161943
CSS13024

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin