83% startup-cards

Code Review | Startup Cards

WordPress plugin Startup Cards scored83%from 54 tests.

About plugin

  • Plugin page: startup-cards
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Aug 22, 2023
  • Number of updates: 17
  • Update frequency: every 23.1 days
  • Top authors: fralomia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.45ms] Passed 4 tests

A check of server-side resources used by Startup Cards
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /57.96 ▲54.4511,315,609.72 ▲11,315,564.72
Dashboard /wp-admin3.45 ▲0.1058.41 ▼1.34
Posts /wp-admin/edit.php3.56 ▲0.1651.27 ▼1.66
Add New Post /wp-admin/post-new.php6.03 ▲0.1092.18 ▼13.85
Media Library /wp-admin/upload.php3.37 ▲0.1037.99 ▲3.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Startup Cards
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲2714.33 ▲0.051.71 ▼0.2041.54 ▼2.05
Dashboard /wp-admin2,215 ▲385.56 ▼0.0191.96 ▲0.7044.12 ▲2.15
Posts /wp-admin/edit.php2,120 ▲201.98 ▼0.0534.83 ▼3.7337.70 ▼1.18
Add New Post /wp-admin/post-new.php1,543 ▲623.51 ▲5.34685.18 ▲26.9062.15 ▼1.53
Media Library /wp-admin/upload.php1,423 ▲204.15 ▼0.0297.23 ▼2.7951.42 ▲2.86

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/startup-cards/startupcards.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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: Add an image for screenshot #1 (This is your dashboard inside WordPress, you can personalize the Card's settings. This corresponds to screenshot-1.png)
  • Tested up to: Version format is invalid
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

startup-cards/startupcards.php 92% from 13 tests

"Startup Cards" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("startup-cards.php" instead of "startupcards.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 plugin1,586 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS28226966
PHP24943580
JavaScript27540

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin