89% ms-post-type-shortcode

Code Review | Ms Post Type Shortcode

WordPress plugin Ms Post Type Shortcode scored89%from 54 tests.

About plugin

  • Plugin page: ms-post-type-shor...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 10, 2019
  • Latest release: Jan 10, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: onzpowr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /614 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.74ms] Passed 4 tests

An overview of server-side resources used by Ms Post Type Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2043.38 ▲0.16
Dashboard /wp-admin3.50 ▲0.2051.35 ▼0.36
Posts /wp-admin/edit.php3.62 ▲0.2649.85 ▲0.07
Add New Post /wp-admin/post-new.php6.09 ▲0.2090.44 ▼10.35
Media Library /wp-admin/upload.php3.43 ▲0.2040.50 ▼0.30
Settings /wp-admin/admin.php?page=fpb_mspts_setting3.5535.77
Introduction /wp-admin/admin.php?page=fpb_mspts_intro3.4131.40

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ms Post Type Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲5114.28 ▼0.272.14 ▼0.3044.19 ▲1.35
Dashboard /wp-admin2,218 ▲475.59 ▲0.0793.02 ▲2.9941.80 ▼3.76
Posts /wp-admin/edit.php2,123 ▲201.99 ▼0.1134.72 ▼3.8934.48 ▼2.79
Add New Post /wp-admin/post-new.php1,545 ▲1922.99 ▼0.05677.82 ▼27.5259.96 ▲3.82
Media Library /wp-admin/upload.php1,420 ▲234.17 ▼0.0699.97 ▼17.5342.19 ▼7.06
Settings /wp-admin/admin.php?page=fpb_mspts_setting3,7843.51136.7949.59
Introduction /wp-admin/admin.php?page=fpb_mspts_intro1,0551.9923.1643.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Design and slider setting screen in plugin.), #2 (Frontend View of grid and pagination.), #3 (Frontend View of slider layout.)
The official readme.txt is a good inspiration

ms-post-type-shortcode/ms-post-grid-shortcode.php 92% from 13 tests

Analyzing the main PHP file in "Ms Post Type Shortcode" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ms-post-type-shortcode.php" instead of "ms-post-grid-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin10,008 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS6103293,607
SVG2102,684
JavaScript7860542,386
PHP81111661,331

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity43.60
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity11.14
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods21
▷ Static methods419.05%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png46.88KB14.62KB▼ 68.81%
screenshot-2.png263.98KB78.49KB▼ 70.27%
screenshot-3.png45.39KB13.12KB▼ 71.10%