83% style-guide-checker

Code Review | Content Style Guide and Grammar Checker - Editist WordPress Plugin

WordPress plugin Content Style Guide and Grammar Checker - Editist WordPress Plugin scored83%from 54 tests.

About plugin

  • Plugin page: style-guide-checker
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Feb 10, 2018
  • Latest release: Sep 18, 2018
  • Number of updates: 16
  • Update frequency: every 13.8 days
  • Top authors: spxdcz (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /5,047 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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼2.17ms] Passed 4 tests

A check of server-side resources used by Content Style Guide and Grammar Checker - Editist WordPress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.13 ▼1.25
Dashboard /wp-admin3.50 ▲0.1948.16 ▼0.79
Posts /wp-admin/edit.php3.55 ▲0.1943.14 ▼4.28
Add New Post /wp-admin/post-new.php6.11 ▲0.2397.21 ▼2.37
Media Library /wp-admin/upload.php3.42 ▲0.1936.61 ▼0.15

Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Content Style Guide and Grammar Checker - Editist WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5113.22 ▼1.051.58 ▼0.0840.96 ▼5.51
Dashboard /wp-admin2,218 ▲384.94 ▼0.6798.32 ▲2.2139.41 ▼0.56
Posts /wp-admin/edit.php2,127 ▲242.29 ▲0.3135.04 ▼6.1334.07 ▼4.32
Add New Post /wp-admin/post-new.php6,356 ▲4,83025.99 ▲3.07911.58 ▲276.9779.59 ▲29.70
Media Library /wp-admin/upload.php1,426 ▲264.49 ▲0.31106.95 ▲11.2144.06 ▲3.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/style-guide-checker/admin/partials/content-standards-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

style-guide-checker/content-standards.php 85% from 13 tests

Analyzing the main PHP file in "Content Style Guide and Grammar Checker - Editist WordPress Plugin" version 1.3.1
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("style-guide-checker.php" instead of "content-standards.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 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
No dangerous file extensions were detected2,318 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34421261,308
PHP10237438511
CSS3862498
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3284.21%
▷ Protected methods00.00%
▷ Private methods615.79%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
PNG images were not found in this plugin