89% selfish-fresh-start

Code Review | Selfish Fresh Start

WordPress plugin Selfish Fresh Start scored89%from 54 tests.

About plugin

  • Plugin page: selfish-fresh-start
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 3, 2011
  • Latest release: Nov 15, 2017
  • Number of updates: 19
  • Update frequency: every 119.3 days
  • Top authors: ryno267 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /7,602 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.08ms] Passed 4 tests

Analyzing server-side resources used by Selfish Fresh Start
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.60 ▲5.70
Dashboard /wp-admin3.34 ▲0.0447.98 ▼7.06
Posts /wp-admin/edit.php3.40 ▲0.0449.22 ▼0.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.87 ▼15.53
Media Library /wp-admin/upload.php3.27 ▲0.0436.10 ▼1.32

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/selfish-fresh-start/" and "wp-content/uploads/"
    • (deleted) wp-content/plugins/hello.php
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Selfish Fresh Start
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,525 ▼23614.31 ▲0.111.71 ▼0.0339.16 ▼3.12
Dashboard /wp-admin1,935 ▼2425.58 ▼0.0587.69 ▼2.0138.80 ▼5.86
Posts /wp-admin/edit.php2,092 ▼82.03 ▼0.0239.57 ▲3.1334.77 ▲1.94
Add New Post /wp-admin/post-new.php1,525 ▼123.49 ▲0.46691.44 ▲54.7961.76 ▲6.13
Media Library /wp-admin/upload.php1,395 ▼54.21 ▲0.0497.48 ▼10.9742.81 ▼3.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (27 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

selfish-fresh-start/selfish-fresh-start.php Passed 13 tests

Analyzing the main PHP file in "Selfish Fresh Start" version 1.2.0
98 characters long description:
Removes clutter and commonly unneeded things in WordPress. Full details in the plugin description.

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 plugin114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP260123114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin