83% sp-blog-designer

Code Review | SP Blog Designer

WordPress plugin SP Blog Designer scored 83% from 54 tests.

About plugin

  • Plugin page: sp-blog-designer
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.1
  • WordPress version: 6.3.1
  • First release: May 8, 2021
  • Latest release: May 10, 2021
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: softpulseinfotech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▲2.69ms] Passed 4 tests

An overview of server-side resources used by SP Blog Designer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.73 ▲3.53
Dashboard /wp-admin3.33 ▲0.0349.29 ▲1.26
Posts /wp-admin/edit.php3.38 ▲0.0348.18 ▲4.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.32 ▲3.84
Media Library /wp-admin/upload.php3.25 ▲0.0234.88 ▲2.12
Contact Us /wp-admin/admin.php?page=sp-help&tab=support3.3033.25
Create Shortcode /wp-admin/admin.php?page=SpBlogDesigner3.2731.65
FAQ /wp-admin/admin.php?page=sp-help&tab=faq3.2237.29
Help /wp-admin/admin.php?page=sp-help3.2233.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SP Blog Designer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲14714.03 ▲0.765.09 ▼2.3142.81 ▼5.84
Dashboard /wp-admin2,277 ▲685.19 ▼0.68112.27 ▲9.7740.92 ▼0.52
Posts /wp-admin/edit.php2,172 ▲832.57 ▲0.5443.95 ▲6.3753.12 ▲17.56
Add New Post /wp-admin/post-new.php1,573 ▲5420.99 ▼2.33683.87 ▲44.1438.74 ▼27.84
Media Library /wp-admin/upload.php1,456 ▲654.57 ▲0.37101.80 ▼0.9941.31 ▼6.14
Contact Us /wp-admin/admin.php?page=sp-help&tab=support1,3272.2130.8449.75
Create Shortcode /wp-admin/admin.php?page=SpBlogDesigner2,7622.7775.2890.81
FAQ /wp-admin/admin.php?page=sp-help&tab=faq1,3592.3238.3152.53
Help /wp-admin/admin.php?page=sp-help1,3242.2032.4740.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=SpBlogDesigner
    • > Notice in wp-content/plugins/sp-blog-designer/includes/sp-functions.php+437
    Undefined index: class
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=SpBlogDesigner
    • > Notice in wp-content/plugins/sp-blog-designer/includes/sp-functions.php+437
    Undefined index: property
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=SpBlogDesigner
    • > Notice in wp-content/plugins/sp-blog-designer/includes/admin/settings.php+65
    Undefined variable: tmpl_id

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: news, blog, blog plugin, designer, news design...

sp-blog-designer/sp-blogs.php 85% from 13 tests

This is the main PHP file of "SP Blog Designer" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6.35" instead of "5.6")
  • Main file name: Name the main plugin file the same as the plugin slug ("sp-blog-designer.php" instead of "sp-blogs.php")

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
Success! There were no dangerous files found in this plugin3,200 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP222013343,188
CSS3008
JavaScript32144

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.86MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/banner-1-2.png134.03KB50.54KB▼ 62.29%
assets/images/grids.png244.19KB82.66KB▼ 66.15%
assets/images/design.png60.03KB21.21KB▼ 64.66%
assets/images/splogo.png5.19KB2.55KB▼ 50.85%
assets/images/list.png162.05KB54.20KB▼ 66.55%