79% extra-sentence-space

Code Review | Extra Sentence Space

WordPress plugin Extra Sentence Space scored 79% from 54 tests.

About plugin

  • Plugin page: extra-sentence-space
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2009
  • Latest release: Jan 1, 2020
  • Number of updates: 22
  • Update frequency: every 175.9 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 9,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.10ms] Passed 4 tests

A check of server-side resources used by Extra Sentence Space
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.80 ▼4.84
Dashboard /wp-admin3.31 ▲0.0143.94 ▼2.18
Posts /wp-admin/edit.php3.36 ▲0.0148.12 ▲4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.18 ▼6.02
Media Library /wp-admin/upload.php3.24 ▲0.0136.95 ▲0.63

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extra Sentence Space
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.364.20 ▲2.2137.76 ▼4.74
Dashboard /wp-admin2,206 ▲154.85 ▼0.0599.63 ▼3.8138.52 ▼0.94
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0638.61 ▲3.4735.23 ▲3.49
Add New Post /wp-admin/post-new.php1,533 ▲1923.08 ▲5.65653.96 ▲53.2252.30 ▼1.69
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0693.73 ▼14.7440.58 ▼5.33

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/extra-sentence-space/tests/bootstrap.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/extra-sentence-space/tests/bootstrap.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/extra-sentence-space/tests/bootstrap.php on line 17

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 Passed 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
5 plugin tags: coffee2code, formatting, content, space, post

extra-sentence-space/extra-sentence-space.php Passed 13 tests

Analyzing the main PHP file in "Extra Sentence Space" version 1.3.9
70 characters long description:
Force browsers to display two spaces (when present) between sentences.

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 plugin286 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP445121131
Markdown2350120
Bourne Shell16221
XML10014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods736.84%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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