84% sitesauce

Code Review | Sitesauce

WordPress plugin Sitesauce scored84%from 54 tests.

About plugin

  • Plugin page: sitesauce
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2019
  • Latest release: May 29, 2020
  • Number of updates: 8
  • Update frequency: every 29.5 days
  • Top authors: m1guelpf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.86ms] Passed 4 tests

Analyzing server-side resources used by Sitesauce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.09 ▼1.06
Dashboard /wp-admin3.37 ▲0.0249.09 ▼15.06
Posts /wp-admin/edit.php3.48 ▲0.1247.53 ▼2.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.15 ▼16.41
Media Library /wp-admin/upload.php3.29 ▲0.0640.33 ▲3.08
Sitesauce /wp-admin/options-general.php?page=sitesauce3.2631.23

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Sitesauce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.32 ▼0.271.63 ▲0.0639.16 ▼2.06
Dashboard /wp-admin2,204 ▲275.53 ▼0.0589.16 ▼0.5840.48 ▲3.37
Posts /wp-admin/edit.php2,112 ▲152.03 ▲0.0839.65 ▲3.8438.91 ▲3.17
Add New Post /wp-admin/post-new.php1,546 ▲1118.39 ▲0.17632.55 ▲14.6065.53 ▲2.36
Media Library /wp-admin/upload.php1,412 ▲124.12 ▼0.0998.00 ▼4.1241.11 ▼6.76
Sitesauce /wp-admin/options-general.php?page=sitesauce7941.9925.1027.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sitesauce/src/functions.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: jamstack, vercel, zeit, sitesauce, static

sitesauce/sitesauce.php Passed 13 tests

The principal PHP file in "Sitesauce" v. 1.0.0 is loaded by WordPress automatically on each request
51 characters long description:
Keep Sitesauce in sync with your Wordpress content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin232 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP965153232

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.40
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods20
▷ Static methods1470.00%
▷ Public methods1680.00%
▷ Protected methods315.00%
▷ Private methods15.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin