84% fresh-plugins

Code Review | Fresh Plugins

WordPress plugin Fresh Plugins scored84%from 54 tests.

About plugin

  • Plugin page: fresh-plugins
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 23, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 35
  • Update frequency: every 63.1 days
  • Top authors: wpfixit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /6,470 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.09MB] [CPU: ▼3.89ms] Passed 4 tests

Server-side resources used by Fresh Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0944.38 ▼1.43
Dashboard /wp-admin3.40 ▲0.0956.75 ▼1.76
Posts /wp-admin/edit.php3.51 ▲0.1553.53 ▼7.30
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.08 ▼5.08
Media Library /wp-admin/upload.php3.32 ▲0.0940.68 ▲1.92

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Fresh Plugins: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.20 ▼0.211.73 ▼0.7942.49 ▼0.91
Dashboard /wp-admin2,198 ▲245.64 ▲0.0786.90 ▼10.1336.84 ▼4.42
Posts /wp-admin/edit.php2,100 ▼02.14 ▲0.1241.87 ▼2.0936.86 ▼1.06
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.10678.33 ▼33.3059.95 ▲5.89
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.04101.35 ▼9.2846.01 ▼1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fresh-plugins/admin/partials/force-reinstall-admin-display.php
    • > /wp-content/plugins/fresh-plugins/public/partials/force-reinstall-public-display.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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: plugins, update plugins, plugin, update plugin

fresh-plugins/fresh-plugins.php 92% from 13 tests

The main PHP file in "Fresh Plugins" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 339 characters long)

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
Everything looks great! No dangerous files found in this plugin465 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15149663388
JavaScript3133371
CSS2286

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.75
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2779.41%
▷ Protected methods00.00%
▷ Private methods720.59%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected