83% post-designer

Code Review | Post Designer

WordPress plugin Post Designer scored83%from 54 tests.

About plugin

  • Plugin page: post-designer
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2023
  • Latest release: Oct 4, 2023
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: shewa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /57 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▲3.44ms] Passed 4 tests

This is a short check of server-side resources used by Post Designer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2445.29 ▲4.75
Dashboard /wp-admin3.57 ▲0.2646.36 ▼0.67
Posts /wp-admin/edit.php3.62 ▲0.2651.08 ▲6.57
Add New Post /wp-admin/post-new.php6.11 ▲0.2397.58 ▲3.11
Media Library /wp-admin/upload.php3.43 ▲0.2039.84 ▲7.83

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
_post_designer_install_time
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Post Designer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.76 ▼0.618.06 ▲6.1737.41 ▼13.72
Dashboard /wp-admin2,203 ▲155.83 ▼0.05105.41 ▼0.9241.21 ▼1.11
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0039.84 ▲4.3835.16 ▼0.56
Add New Post /wp-admin/post-new.php6,362 ▲4,82028.59 ▲10.28848.03 ▲218.7435.95 ▼19.14
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0197.27 ▼34.5743.08 ▼4.64

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • _post_designer_install_time
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-designer/post-designer.php:58
    • > PHP Fatal error
      Uncaught Error: Class 'PostDesigner\\Utilities\\Utilities' not found in wp-content/plugins/post-designer/templates/post-carousel.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PostDesigner\\Utilities\\Utilities' not found in wp-content/plugins/post-designer/templates/post-list.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'PostDesigner' not found in wp-content/plugins/post-designer/templates/card/card.php:11

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

post-designer/post-designer.php 85% from 13 tests

The main PHP script in "Post Designer" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "5.9")
  • Description: The description should be shorter than 140 characters (currently 232 characters long)

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
There were no executable files found in this plugin2,391 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP233458501,548
JSON300499
CSS6445280
JavaScript433445
SVG21019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.38
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods79
▷ Static methods5063.29%
▷ Public methods7594.94%
▷ Protected methods00.00%
▷ Private methods45.06%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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