89% wp-contents-dynamic-display

Code Review | WP Contents Dynamic Display

WordPress plugin WP Contents Dynamic Display scored89%from 54 tests.

About plugin

  • Plugin page: wp-contents-dynam...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 22, 2016
  • Latest release: Sep 27, 2016
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: devcon1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /782 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.64ms] Passed 4 tests

Analyzing server-side resources used by WP Contents Dynamic Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.34 ▼4.07
Dashboard /wp-admin3.36 ▲0.0554.25 ▼1.10
Posts /wp-admin/edit.php3.38 ▲0.0251.37 ▲2.59
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.43 ▼3.97
Media Library /wp-admin/upload.php3.30 ▲0.0744.84 ▲10.82
All Dynamic Contents /wp-admin/edit.php?post_type=wpcdd3.3445.86
Control Panel /wp-admin/admin.php?page=wpcdd_admin_menu_control_panel3.2938.35
Instructions /wp-admin/admin.php?page=wpcdd_admin_menu_instruction3.2938.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

WP Contents Dynamic Display: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9514.27 ▼0.141.82 ▼0.1340.39 ▼2.69
Dashboard /wp-admin2,252 ▲725.79 ▲0.1588.07 ▼3.9777.44 ▲40.36
Posts /wp-admin/edit.php2,151 ▲482.39 ▲0.3747.13 ▲1.4036.83 ▼4.35
Add New Post /wp-admin/post-new.php1,571 ▲3123.44 ▲0.13736.98 ▲107.8536.79 ▼10.56
Media Library /wp-admin/upload.php1,450 ▲504.48 ▲0.28106.48 ▲0.0167.85 ▲21.61
All Dynamic Contents /wp-admin/edit.php?post_type=wpcdd1,1312.3448.0930.54
Control Panel /wp-admin/admin.php?page=wpcdd_admin_menu_control_panel9341.9226.4935.25
Instructions /wp-admin/admin.php?page=wpcdd_admin_menu_instruction8361.9027.2726.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected 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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
The official readme.txt might help

wp-contents-dynamic-display/wp-contents-dynamic-display.php 92% from 13 tests

"WP Contents Dynamic Display" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 435 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,959 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS7981031,652
JavaScript2188103955
SVG100685
PHP17152572667

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3683.72%
▷ Protected methods24.65%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
admin/assets/admin-icon.png1.39KB0.57KB▼ 59.27%
admin/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
admin/css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
admin/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%