84% wp-plain-text-post

Code Review | WP Plain Text Post

WordPress plugin WP Plain Text Post scored84%from 54 tests.

About plugin

  • Plugin page: wp-plain-text-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Aug 8, 2015
  • Latest release: Aug 8, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: thamizhchelvan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,381 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
Installer ran successfully

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

Analyzing server-side resources used by WP Plain Text Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.04 ▲0.75
Dashboard /wp-admin3.32 ▼0.0251.23 ▼12.06
Posts /wp-admin/edit.php3.37 ▲0.0252.09 ▼1.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.91 ▼1.30
Media Library /wp-admin/upload.php3.25 ▲0.0237.97 ▲2.78
WP Plain Post /wp-admin/options-general.php?page=wpplainpost-page3.2133.68

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Plain Text Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5813.16 ▼1.231.89 ▼0.4241.84 ▼0.75
Dashboard /wp-admin2,219 ▲165.80 ▼0.10100.90 ▼9.9338.78 ▼1.29
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0340.29 ▼1.6134.50 ▼1.64
Add New Post /wp-admin/post-new.php1,548 ▲2223.28 ▲5.58668.11 ▼34.4758.79 ▲5.43
Media Library /wp-admin/upload.php1,407 ▲44.24 ▲0.0297.75 ▼9.4844.40 ▼1.66
WP Plain Post /wp-admin/options-general.php?page=wpplainpost-page8612.0521.9325.80

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plain-text-post/wpplainpost.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 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
6 plugin tags: plain, text, remove, post, html...

wp-plain-text-post/wpplainpost.php 92% from 13 tests

The main PHP file in "WP Plain Text Post" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-plain-text-post.php" instead of "wpplainpost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1438104

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.80KB9.83KB▼ 58.70%