84% remove-double-space

Code Review | Remove Double Space

WordPress plugin Remove Double Space scored 84% from 54 tests.

About plugin

  • Plugin page: remove-double-space
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.4.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2010
  • Latest release: Aug 28, 2012
  • Number of updates: 13
  • Update frequency: every 79.1 days
  • Top authors: jjeaton (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 5,323 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Remove Double Space
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.02 ▼1.20
Dashboard /wp-admin3.34 ▲0.0445.51 ▼2.74
Posts /wp-admin/edit.php3.39 ▲0.0347.51 ▲0.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.24 ▼12.72
Media Library /wp-admin/upload.php3.26 ▲0.0335.11 ▼2.26
Remove Spaces /wp-admin/options-general.php?page=jje-remove-double-space3.2329.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
jje_rds_plugin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Double Space
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.86 ▲0.441.78 ▼0.1944.03 ▼3.92
Dashboard /wp-admin2,213 ▲284.80 ▼0.0998.95 ▼1.9039.30 ▲0.12
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0134.82 ▼5.3735.54 ▼0.86
Add New Post /wp-admin/post-new.php1,522 ▼1123.49 ▲0.30659.81 ▲16.6954.88 ▲7.94
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0196.16 ▼6.6241.97 ▼2.55
Remove Spaces /wp-admin/options-general.php?page=jje-remove-double-space8142.1925.2426.63

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/remove-double-space/remove-double-space.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: posts, formatting, post, spaces, typography...

remove-double-space/remove-double-space.php Passed 13 tests

Analyzing the main PHP file in "Remove Double Space" version 0.3
53 characters long description:
Replace duplicate spaces with single spaces in posts.

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
There were no executable files found in this plugin105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22898105

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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
No PNG images were found in this plugin