84% autocorrector-wp-camelcase

Code Review | Autocorrector WP CamelCase

WordPress plugin Autocorrector WP CamelCase scored84%from 54 tests.

About plugin

  • Plugin page: autocorrector-wp-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Jul 4, 2019
  • Latest release: Nov 27, 2020
  • Number of updates: 6
  • Update frequency: every 85.3 days
  • Top authors: vishalparit10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Autocorrector WP CamelCase
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.93 ▼3.64
Dashboard /wp-admin3.32 ▲0.0153.05 ▼9.29
Posts /wp-admin/edit.php3.37 ▲0.0149.39 ▼4.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.84 ▼7.75
Media Library /wp-admin/upload.php3.24 ▲0.0140.28 ▲6.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Autocorrector WP CamelCase
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.32 ▼1.098.83 ▲7.3542.61 ▼1.40
Dashboard /wp-admin2,196 ▲165.49 ▼0.1883.88 ▼4.1038.51 ▼5.77
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0335.48 ▼0.5636.20 ▲1.03
Add New Post /wp-admin/post-new.php1,533 ▲823.24 ▼0.34606.21 ▼13.8259.52 ▼3.65
Media Library /wp-admin/upload.php1,398 ▼24.24 ▲0.0496.32 ▼10.3842.32 ▼1.74

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/autocorrector-wp-camelcase/admin/partials/autocorrector-wp-camelcase-admin-display.php
    • > /wp-content/plugins/autocorrector-wp-camelcase/public/partials/autocorrector-wp-camelcase-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: autocorrector, comments, spam, camelcase, rename...

autocorrector-wp-camelcase/autocorrector-wp-camelcase.php Passed 13 tests

This is the main PHP file of "Autocorrector WP CamelCase" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
Simple plugin to correct camelcase while writting WordPress.

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
No dangerous file extensions were detected176 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119536170
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin