84% startpage

Code Review | Startpage

WordPress plugin Startpage scored84%from 54 tests.

About plugin

  • Plugin page: startpage
  • Plugin version: 0.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2019
  • Latest release: Feb 14, 2019
  • Number of updates: 8
  • Update frequency: every 3.8 days
  • Top authors: akirk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.20ms] Passed 4 tests

A check of server-side resources used by Startpage
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.31 ▲4.70
Dashboard /wp-admin3.33 ▲0.0242.92 ▼5.52
Posts /wp-admin/edit.php3.38 ▲0.0249.78 ▲4.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.92 ▼12.13
Media Library /wp-admin/upload.php3.25 ▲0.0233.27 ▼3.86

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Startpage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.141.77 ▼0.0737.71 ▼7.91
Dashboard /wp-admin2,209 ▲185.87 ▲0.96110.45 ▼4.3540.96 ▼6.24
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0639.71 ▲2.3234.94 ▲0.97
Add New Post /wp-admin/post-new.php6,352 ▲4,83227.58 ▲4.44888.84 ▲222.8260.21 ▲6.52
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0595.44 ▼10.9941.52 ▼3.77

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/startpage/templates/bliphome/index.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/startpage/templates/minimalist/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: startpage, new-tab, homepage, own-your-data, oyd

startpage/startpage.php Passed 13 tests

The primary PHP file in "Startpage" version 0.2.1 is used by WordPress to initiate all plugin functionality
56 characters long description:
Create your own browser startpage within your WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,133 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JSON2004,550
JavaScript33636358
PHP526101123
CSS371102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected