90% transform-my-post

Code Review | Transform My Post

WordPress plugin Transform My Post scored90%from 54 tests.

About plugin

  • Plugin page: transform-my-post
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2018
  • Latest release: Mar 17, 2019
  • Number of updates: 16
  • Update frequency: every 24.4 days
  • Top authors: danieltj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,180 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Transform My Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0259.24 ▲21.19
Dashboard /wp-admin3.33 ▼0.0260.53 ▼10.57
Posts /wp-admin/edit.php3.38 ▲0.0255.79 ▼3.67
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.96 ▼6.14
Media Library /wp-admin/upload.php3.25 ▲0.0241.79 ▲8.23

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Transform My Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.012.26 ▲0.5351.95 ▲3.92
Dashboard /wp-admin2,186 ▲65.61 ▼0.07106.73 ▲4.8758.56 ▲15.09
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0242.19 ▲0.5735.31 ▼0.83
Add New Post /wp-admin/post-new.php1,541 ▲1518.17 ▼5.14672.90 ▲8.8454.74 ▼9.71
Media Library /wp-admin/upload.php1,391 ▼124.17 ▼0.05104.23 ▲6.7943.62 ▲0.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: admin, edit, page, post type, post

transform-my-post/transform-my-post.php Passed 13 tests

This is the main PHP file of "Transform My Post" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Transform your posts into different post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin224 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown2870141
PHP1459183

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin