90% add-dummy-post

Code Review | Add Dummy Post

WordPress plugin Add Dummy Post scored90%from 54 tests.

About plugin

  • Plugin page: add-dummy-post
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.0
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Jul 20, 2022
  • Number of updates: 2
  • Update frequency: every 13.0 days
  • Top authors: shubhamsedani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 total downloads


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.03MB] [CPU: ▼5.77ms] Passed 4 tests

An overview of server-side resources used by Add Dummy Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.22 ▼3.85
Dashboard /wp-admin3.35 ▲0.0145.59 ▼16.17
Posts /wp-admin/edit.php3.40 ▲0.0444.13 ▼1.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.30 ▲9.54
Media Library /wp-admin/upload.php3.28 ▲0.0434.61 ▼1.21
Add Dummy Post /wp-admin/tools.php?page=adp-post3.2430.91

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Dummy Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.27 ▼1.334.39 ▲2.5039.04 ▼4.83
Dashboard /wp-admin2,214 ▲254.89 ▼0.09106.60 ▼16.3343.23 ▲0.49
Posts /wp-admin/edit.php2,097 ▲82.02 ▲0.0535.78 ▼4.6933.84 ▲1.02
Add New Post /wp-admin/post-new.php1,520 ▲617.63 ▲0.10657.65 ▼56.4762.79 ▲3.23
Media Library /wp-admin/upload.php1,399 ▲144.23 ▲0.0594.13 ▼2.7041.70 ▲0.07
Add Dummy Post /wp-admin/tools.php?page=adp-post7912.0724.3826.71

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: dummy data, dummy post, add dummy post

add-dummy-post/add-dummy-post.php 92% from 13 tests

The primary PHP file in "Add Dummy Post" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin195 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes1100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods4100.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants8100.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
PNG images were not found in this plugin