83% easy-populate-posts

Code Review | Easy Populate Posts

WordPress plugin Easy Populate Posts scored83%from 54 tests.

About plugin

  • Plugin page: easy-populate-posts
  • Plugin version: 4.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Nov 14, 2023
  • Number of updates: 54
  • Update frequency: every 54.6 days
  • Top authors: Iulia Cazan (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /20,119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼0.29ms] Passed 4 tests

Analyzing server-side resources used by Easy Populate Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4543.73 ▲1.66
Dashboard /wp-admin3.76 ▲0.4156.62 ▼6.66
Posts /wp-admin/edit.php3.87 ▲0.5254.89 ▲7.72
Add New Post /wp-admin/post-new.php6.34 ▲0.4587.35 ▼0.44
Media Library /wp-admin/upload.php3.68 ▲0.4537.74 ▲4.30
Easy Populate Posts /wp-admin/tools.php?page=populate-posts-settings3.6538.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
spp_settings_groups
db_upgraded
widget_recent-posts
widget_recent-comments
spp_settings
spp_plugin_notice_db_ver

Browser metrics Passed 4 tests

A check of browser resources used by Easy Populate Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11114.72 ▲0.581.74 ▲0.0344.39 ▼0.26
Dashboard /wp-admin2,263 ▲835.71 ▲0.0691.24 ▼5.1190.33 ▲45.75
Posts /wp-admin/edit.php2,172 ▲722.09 ▲0.1338.27 ▲3.8036.93 ▼3.09
Add New Post /wp-admin/post-new.php1,740 ▲21422.18 ▼1.10706.38 ▲29.4246.67 ▼23.13
Media Library /wp-admin/upload.php1,468 ▲654.27 ▲0.1696.96 ▼1.1882.53 ▲42.25
Easy Populate Posts /wp-admin/tools.php?page=populate-posts-settings1,9082.1725.2858.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • spp_settings
    • widget_recent-comments
    • spp_plugin_notice_db_ver
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • spp_settings_groups

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-populate-posts/easy-populate-posts.php:35

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 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

easy-populate-posts/easy-populate-posts.php 85% from 13 tests

The main file in "Easy Populate Posts" v. 4.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
  • 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,397 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22654712,125
PO File1127142269
CSS2002
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity318.00
▷ Minimum class complexity318.00
▷ Maximum class complexity318.00
Average method complexity5.81
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods63
▷ Static methods6196.83%
▷ Public methods6298.41%
▷ Protected methods00.00%
▷ Private methods11.59%
Functions15
▷ Named functions00.00%
▷ Anonymous functions15100.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/buy-me-a-coffee.png19.75KB7.15KB▼ 63.78%
assets/images/icon-128x128.png40.55KB14.47KB▼ 64.32%