10% dynamic-post

Code Review | Dynamic Post

WordPress plugin Dynamic Post scored10%from 54 tests.

About plugin

  • Plugin page: dynamic-post
  • Plugin version: 3.02.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Feb 23, 2022
  • Number of updates: 132
  • Update frequency: every 12.3 days
  • Top authors: service2client (77.27%)cpa2client (23.48%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,822 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/dynamic-post/post-types/post_type_dynamic_post.php+299
    Undefined index: HTTP_ORIGIN

Server metrics [RAM: ▼1.57MB] [CPU: ▼57.16ms] Passed 4 tests

A check of server-side resources used by Dynamic Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.42 ▼1.047.53 ▼34.36
Dashboard /wp-admin2.44 ▼0.907.72 ▼57.30
Posts /wp-admin/edit.php2.45 ▼0.918.51 ▼41.45
Add New Post /wp-admin/post-new.php2.45 ▼3.447.75 ▼95.52
Media Library /wp-admin/upload.php2.45 ▼0.789.10 ▼26.05

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: 1 new table, 11 new options
New tables
wp_api_status
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
canonical_metadata
hide_images
feat_ured
widget_recent-posts
auto_up
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dynamic Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.54 ▼0.638.20 ▲6.2938.91 ▼0.35
Dashboard /wp-admin2,219 ▲314.87 ▼0.1095.06 ▼14.0737.58 ▼6.11
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0133.44 ▼3.0034.65 ▲0.03
Add New Post /wp-admin/post-new.php1,540 ▲2123.55 ▲0.14596.00 ▼77.5155.98 ▲0.36
Media Library /wp-admin/upload.php1,407 ▲224.15 ▼0.0391.34 ▼9.4643.66 ▼3.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/dynamic-post/post-types/post_type_dynamic_post.php+299
    Undefined index: HTTP_ORIGIN
  • Zombie tables detected upon uninstall: 1 table
    • wp_api_status
  • Zombie WordPress options were found after uninstall: 11 options
    • feat_ured
    • hide_images
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • hide_metadata
    • db_upgraded
    • canonical_metadata
    • widget_recent-posts
    • widget_theysaidso_widget
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add an image for screenshot #1 (Dynamic Post - common settings.)
Please take inspiration from this readme.txt

dynamic-post/wp_plugin_dynamic_post.php 92% from 13 tests

The main PHP script in "Dynamic Post" version 3.02.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dynamic-post.php" instead of "wp_plugin_dynamic_post.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
Success! There were no dangerous files found in this plugin16,610 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS523259,739
SVG2002,959
PHP41232632,314
JavaScript25822051,598

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.33
▷ Minimum class complexity2.00
▷ Maximum class complexity36.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2492.31%
▷ Protected methods00.00%
▷ Private methods27.69%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.86MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png223.35KB79.61KB▼ 64.36%
assets/screenshot-1.png200.30KB69.76KB▼ 65.17%
assets/dp-logo.png11.42KB4.94KB▼ 56.77%
assets/screenshot-3.png216.94KB78.06KB▼ 64.02%
assets/screenshot-2.png230.92KB82.55KB▼ 64.25%