89% wiki-styled-editing

Code Review | Wiki Styled Editing

WordPress plugin Wiki Styled Editing scored89%from 54 tests.

About plugin

  • Plugin page: wiki-styled-editing
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jul 11, 2021
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: rpopli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /313 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
Install script ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼19.78ms] Passed 4 tests

This is a short check of server-side resources used by Wiki Styled Editing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0232.41 ▼11.87
Dashboard /wp-admin3.31 ▲0.0144.93 ▼7.98
Posts /wp-admin/edit.php3.36 ▲0.0145.75 ▼1.62
Add New Post /wp-admin/post-new.php4.60 ▼1.2844.63 ▼57.64
Media Library /wp-admin/upload.php3.23 ▲0.0137.98 ▲3.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wiki Styled Editing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.52 ▼0.861.72 ▼0.2043.10 ▼4.10
Dashboard /wp-admin2,222 ▲334.85 ▼0.05108.17 ▼12.9837.23 ▼10.20
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0539.28 ▲3.5334.86 ▼2.39
Add New Post /wp-admin/post-new.php1,430 ▼11521.73 ▲3.49558.08 ▼98.7330.04 ▼25.68
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.0497.01 ▼5.6740.56 ▼1.67

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tested up to: Version format is invalid
You can take inspiration from this readme.txt

wiki-styled-editing/wiki-styled-editing.php 92% from 13 tests

The main PHP file in "Wiki Styled Editing" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin78 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3342378

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected