90% generate-posts-and-terms

Code Review | Generate Posts and Terms

WordPress plugin Generate Posts and Terms scored 90% from 54 tests.

About plugin

  • Plugin page: generate-posts-an...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Dec 27, 2015
  • Latest release: Mar 6, 2016
  • Number of updates: 11
  • Update frequency: every 6.4 days
  • Top authors: alexvorn2 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

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

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

An overview of server-side resources used by Generate Posts and Terms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.07 ▼4.12
Dashboard /wp-admin3.32 ▲0.0244.49 ▼3.06
Posts /wp-admin/edit.php3.37 ▲0.0148.51 ▼7.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.57 ▼14.61
Media Library /wp-admin/upload.php3.24 ▲0.0132.60 ▼0.69
Generate Posts and Terms /wp-admin/plugins.php?page=generate_posts_and_terms3.2431.10

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Generate Posts and Terms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.66 ▼0.721.63 ▼0.1538.29 ▼5.98
Dashboard /wp-admin2,213 ▲254.86 ▼1.0397.57 ▼6.0042.59 ▼0.71
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0838.27 ▼4.3735.46 ▼0.67
Add New Post /wp-admin/post-new.php1,537 ▼723.19 ▲4.81655.48 ▲38.3349.48 ▼5.16
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0792.22 ▼4.0340.44 ▼3.81
Generate Posts and Terms /wp-admin/plugins.php?page=generate_posts_and_terms1,1441.9931.2332.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: terms, categories, tags, posts, dummy...

generate-posts-and-terms/generate-posts-and-terms.php Passed 13 tests

The entry point to "Generate Posts and Terms" version 1.4 is a PHP file that has certain tags in its header comment area
119 characters long description:
This plugin will help you generate dummy new posts and terms. (Go to: Dashboard -> Plugins -> Generate Posts and Terms)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,860 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP125151591,559
CSS1480234
JavaScript1291067

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin